19 Apr
2012
19 Apr
'12
6:35 a.m.
2012/4/18 Vicente J. Botet Escriba
Le 18/04/12 20:06, Serge Skorokhodov a écrit :
Hello,
I've read Anthony Williams' articles and documentation but still have no definite answer. Thus two questions:
1. Is it safe to use a block level static boost::mutex on Unix and Windows? 2. Is it safe to use a file/class level static boost::mutex on Unix and Windows?
Hi,
I don't see what kind of problems are your expecting. Could you clarify? What do you mean by safe?
I believe Serge is asking whether a zero-initialized mutex is the same as default-constructed. It also might matter whether mutex has a non-trivial destructor. Roman Perepelitsa.