3 Aug
2007
3 Aug
'07
9:12 a.m.
http://boost.org/doc/html/thread/concepts.html#thread.concepts.locking-strat... Cheng Lian wrote:
I think this would definitely self deadlock and the program should be waiting forever.
No, the behavior is operating system dependent. See e.g. http://boost.org/doc/html/thread/concepts.html#thread.concepts.locking-strat... "With an unspecified locking strategy, when a thread attempts to acquire a lock on a mutex object for which the thread already owns a lock the operation results in undefined behavior." Boost thread currently only provides: "unspecified locking strategy." roland aka. speedsnail