DragonFly BSD
DragonFly commits List (threaded) for 2005-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: cvs commit: src/include stdio.h src/lib/libc/gen _pthread_stubs.c src/lib/libc/stdio _flock_stub.c asprintf.c findfp.c fseek.c local.h refill.c snprintf.c sprintf.c sscanf.c ungetc.c vasprintf.c vfprintf.c vsnprintf.c vsprintf.c vsscanf.c


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Tue, 10 May 2005 13:25:23 +0200
Mail-followup-to: commits@crater.dragonflybsd.org

On Tue, May 10, 2005 at 06:27:07AM +0800, davidxu wrote:
> We already did the optimizations by using macro FILELOCK In
> libc_private.h. Another reason to not use recursive mutex is that
> default mutex is not recursive, and dynamically creating it have
> race.

The first is fine, but not a reason to avoid recursive mutexes.
The second is strange, we have to create the mutex dynamically
anyway. This needs to be done at one point or another anyway,
even for the case of a normal mutex. Question is of course, which
is the best time to initialise it.

Joerg



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]