|
Boost : |
From: Adal Chiriliuc (adal_at_[hidden])
Date: 2004-03-22 10:46:32
On Monday, March 22, 2004 Alexander Terekhov wrote:
> Adal Chiriliuc wrote:
>>
>> Hello.
>>
>> try_mutex uses a Mutex instead of a CRITICAL_SECTION because on
>> Windows 9x and Me it's impossible to try the aquisition of a
>> CRITICAL_SECTION.
> Yeah.
> class swap_based_mutex_for_windows { // noncopyable
> atomic<int> m_lock_status; // 0: free, 1: locked, -1: lock-contention
> auto_reset_event m_retry_event;
> public:
> ...
You mean to use an atomic int and an event to simulate a mutex?
Wasn't event usage discouraged because it is unsafe?
atomic, auto_reset_event and msync are not defined anywhere in my
Boost 1.31.0 folder (full text search).
Adal Chiriliuc
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk