|
Boost : |
Subject: Re: [boost] [thread] Request review of new synchronisation object, boost::permit<>
From: microcai (microcai_at_[hidden])
Date: 2014-05-04 23:03:59
2014-05-05 9:29 GMT+08:00 Niall Douglas <s_sourceforge_at_[hidden]>:
> On 4 May 2014 at 23:25, Peter Dimov wrote:
>
>> > A non-consuming permit looks quite like a Win32 event object yes, except
>> > it has stronger guarantees useful for many-waiter many-signaller
>> > situations.
>>
asio::windows::object_handle permit(io_service, CreateEvent(0,1,00));
permit.wait();
permit.async_wait( []{ do some thing here} ) ;
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk