From owner-freebsd-threads@FreeBSD.ORG Thu Mar 11 06:07:10 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5358216A4CE for ; Thu, 11 Mar 2004 06:07:10 -0800 (PST) Received: from rms04.rommon.net (rms04.rommon.net [212.54.2.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C4E243D39 for ; Thu, 11 Mar 2004 06:07:09 -0800 (PST) (envelope-from pete@he.iki.fi) Received: from he.iki.fi (h81.vuokselantie10.fi [193.64.42.129]) by rms04.rommon.net (8.12.9p1/8.12.9) with ESMTP id i2BE76cM084433; Thu, 11 Mar 2004 16:07:06 +0200 (EET) (envelope-from pete@he.iki.fi) Message-ID: <40507287.1040203@he.iki.fi> Date: Thu, 11 Mar 2004 16:07:03 +0200 From: Petri Helenius User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Anders Torger References: <200403111459.11287.torger@ludd.luth.se> In-Reply-To: <200403111459.11287.torger@ludd.luth.se> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-threads@freebsd.org Subject: Re: Does PTHREAD_MUTEX_INITIALIZER work? X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Mar 2004 14:07:10 -0000 Anders Torger wrote: >Do the PTHREAD_MUTEX_INITIALIZER and PTHREAD_COND_INITIALIZER macros >really work? > >What puzzles me is that pthread.h says: > >#define PTHREAD_MUTEX_INITIALIZER NULL >#define PTHREAD_COND_INITIALIZER NULL > >that is the initialisers are NULL. > >I get some strange random temporary lockups and deaths in my program >when running it on FreeBSD (5.0), while it works flawlessy on Linux, >and one reason could perhaps be that the initialisers do not work on >FreeBSD. > > > 5.0 is an early new technology release, I would suggest using 5.2.1 when reporting issues. Pete