|
Boost : |
From: Alexander Terekhov (terekhov_at_[hidden])
Date: 2003-02-20 08:23:54
Peter Dimov wrote:
[...]
> What makes you think that statically initializing a mutex is faster? It only
> defers the initialization until the first lock call occurs.
That's the way how it works under win32. ;-)
> Plus, pthread_mutex_init gives you the option to test for errors, should you
> decide to do so.
Yep. Oh, BTW:
< also a sort of "Does anyone care." in relation to locks ;-) >
http://www.terekhov.de/pthread_refcount_t/poor-man/beta2/prefcnt.h
http://www.terekhov.de/pthread_refcount_t/poor-man/beta2/prefcnt.c
(any comments {in private or here or on c.p.t.} are quite welcome)
regards,
alexander.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk