forked from boostorg/detail
sync: add semaphore implementation
[SVN r85673]
This commit is contained in:
@@ -46,6 +46,12 @@ namespace win32
|
||||
using ::WaitForMultipleObjects;
|
||||
using ::WaitForSingleObject;
|
||||
using ::QueueUserAPC;
|
||||
|
||||
static const DWORD_ wait_abandoned = WAIT_ABANDONED;
|
||||
static const DWORD_ wait_object_0 = WAIT_OBJECT_0;
|
||||
static const DWORD_ wait_timeout = WAIT_TIMEOUT;
|
||||
static const DWORD_ wait_failed = WAIT_FAILED;
|
||||
|
||||
#else
|
||||
extern "C" {
|
||||
struct CRITICAL_SECTION_
|
||||
@@ -115,6 +121,12 @@ extern "C" {
|
||||
# else
|
||||
using ::SetEvent;
|
||||
using ::ResetEvent;
|
||||
|
||||
static const DWORD_ wait_abandoned = 0x00000080L;
|
||||
static const DWORD_ wait_object_0 = 0x00000000L;
|
||||
static const DWORD_ wait_timeout = 0x00000102L;
|
||||
static const DWORD_ wait_failed = (DWORD_)0xFFFFFFFF;
|
||||
|
||||
# endif
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user