How to get return value of scoped_try_lock (boost:thread)
21 Feb
2010
21 Feb
'10
5:44 a.m.
How do I know if my scoped_try_lock has been successful? I notice there is a try_lock non-member function, but that's not a scoped trylock is it?
26 Feb
26 Feb
2:58 a.m.
AMDG David Kaplan wrote:
On 21 February 2010 07:44, David Kaplan
wrote: How do I know if my scoped_try_lock has been successful? I notice there is a try_lock non-member function, but that's not a scoped trylock is it?
Use the owns_lock member of scoped_try_lock.
Is it as easy at just m.try_lock()? Is that always scoped?
A simple function call can never act like a scoped lock. In Christ, Steven Watanabe
5370
Age (days ago)
5376
Last active (days ago)
3 comments
2 participants
participants (2)
-
David Kaplan
-
Steven Watanabe