Le 02/04/13 03:20, Michael Powell a
écrit :
I have added lastly some classes to Boost.Thread that could help
you.
synchronized_value: uses internally a mutex to protect all
the operations (1.54). It is based on the paper of Anthony Williams
"Enforcing Correct Mutex Usage with Synchronized Values".
externally_locked: enforce the use of an external lock to
access the object (1.53). The mutex used to protect the access canbe
shared between several classes/instances. It is based on
the paper of Andrei Alexandrescu "Multithreading and the C++ Type
System".
HTH,
Vicente