|
Boost Users : |
Subject: Re: [Boost-users] How to get return value of scoped_try_lock (boost:thread)
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-02-25 21:58:10
AMDG
David Kaplan wrote:
> On 21 February 2010 07:44, David Kaplan <davkaplan_at_[hidden]> 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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net