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.

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to