From owner-cvs-all Sat Nov 28 18:31:45 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA10934 for cvs-all-outgoing; Sat, 28 Nov 1998 18:31:45 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from pcnet1.pcnet.com (pcnet1.pcnet.com [204.213.232.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA10928; Sat, 28 Nov 1998 18:31:40 -0800 (PST) (envelope-from eischen@vigrid.com) Received: (from eischen@localhost) by pcnet1.pcnet.com (8.8.7/PCNet) id VAA28198; Sat, 28 Nov 1998 21:31:16 -0500 (EST) Date: Sat, 28 Nov 1998 21:31:16 -0500 (EST) From: Daniel Eischen Message-Id: <199811290231.VAA28198@pcnet1.pcnet.com> To: cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, eivind@FreeBSD.ORG, lists@tar.com Subject: Re: cvs commit: src/include pthread.h src/lib/libc_r/uthread uthread_mattr_kind_np.c uthread_mutex.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk > >eivind 1998/11/28 15:52:59 PST > > > > Modified files: > > include pthread.h > > lib/libc_r/uthread uthread_mattr_kind_np.c uthread_mutex.c > > Log: > > Add support for pthread_mutexattr_settype(). As a side effect of > > testing this, fix MUTEX_TYPE_COUNTING_FAST. Recursive locks now work. > ^^^^^^^^^^^^^^^^^^^^^^^^ > You might want to check localtime.c in libc. I seem to recall from > looking at this a couple of weeks ago that the "thread safe", ie. > libc_r, implementation makes recursive calls to pthread_mutex_lock. > Therefore, its possible this change will break some of the localtime > related functions. If so, it could be fixed by having localtime.c > use recursive mutexes, or better yet, by rewriting it so it doesn't > make recursive calls to pthread_mutex_lock. And can we also make a default mutex an error checking mutex? Both POSIX and Single UNIX Spec 2 allow this. SS2 allows that you can map PTHREAD_MUTEX_DEFAULT to any one of the other mutex types - it should be mapped to PTHREAD_MUTEX_ERRORCHECK. If at all possible, we should let the programmer know that he's hit a deadlock condition. Dan Eischen eischen@vigrid.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message