On Thu, Oct 05, 2000 at 04:22:56PM -0700, Alfred Perlstein wrote:
> * Jacques A. Vidrine <[EMAIL PROTECTED]> [001005 16:18] wrote:
> > Is it ok to use pthread_rwlock* and other such primitives in code in
> > src/lib/libc (when _THREAD_SAFE is defined, of course)?
> 
> It sure looks like it.
> 
> cd /usr/src/lib/libc/ ; grep pthread */*

I didn't see all those pthread_mutex*s because I was looking for
pthread_rwlock*s :-)  

Which leads me to wonder if I _want_ pthread_rwlock.  The overhead might
outweigh the benefits of finer-grained locking.  Besides, there doesn't
seem to be a good way of promoting a lock from read->write.
-- 
Jacques Vidrine / [EMAIL PROTECTED] / [EMAIL PROTECTED] / [EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to