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: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 9 May 2005 17:43:10 -0700 (PDT)

:> Well, for a truely single threaded program (not linked against libc_r
:> or others), we can use __isthreaded to skip it. Otherwise we have to
:> use a mutex anyway. Such optimisations belong IMO into the thread
:> library and not into libc.
:> Joerg
: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
:David Xu

    Is there any reason not to embed the mutex directly in the FILE now
    that we've bumped the major version for the libraries?

					Matthew Dillon 

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