RLib  5.7
RLib - an opensource, lightweight and multi-platform framework for cpp programming
System::Threading::WaitHandle Class Reference

封装等待对共享资源的独占访问的操作系统特定的对象 More...

Inheritance diagram for System::Threading::WaitHandle:
System::Threading::Event System::Threading::Mutex System::Threading::Semaphore

Public Member Functions

WaitStatus WaitOne (DWORD millisecondsTimeout=INFINITE)
 If a timeout is specified, and the object has not attained a state of signaled when the timeout expires, then the wait is automatically satisfied. An INFINITE timeout will never expire. If an explicit timeout value of zero is specified, then no wait occurs if the wait cannot be satisfied immediately. More...
 

Static Public Member Functions

static WaitStatus Wait (ULONG nCount, HANDLE *pHandles, bool bWaitAll, bool bAlertable, DWORD millisecondsTimeout)
 等待指定数组中的任一或者全部元素收到信号,使用 32 位带符号整数指定时间间隔 More...
 
static WaitStatus WaitOne (HANDLE handle, bool bAlertable, DWORD millisecondsTimeout)
 阻止当前线程,直到当前收到信号,同时使用 32 位带符号整数指定时间间隔 More...
 

Public Attributes

HANDLE Handle
 Gets the native operating system handle More...
 

Protected Attributes

RLIB_OBJECT_ATTRIBUTES m_obj
 
RLIB_UNICODE_STRING m_name
 

Detailed Description

封装等待对共享资源的独占访问的操作系统特定的对象

Member Function Documentation

WaitStatus WaitHandle::Wait ( ULONG  nCount,
HANDLE *  pHandles,
bool  bWaitAll,
bool  bAlertable,
DWORD  millisecondsTimeout 
)
static

等待指定数组中的任一或者全部元素收到信号,使用 32 位带符号整数指定时间间隔

WaitStatus WaitHandle::WaitOne ( DWORD  millisecondsTimeout = INFINITE)

If a timeout is specified, and the object has not attained a state of signaled when the timeout expires, then the wait is automatically satisfied. An INFINITE timeout will never expire. If an explicit timeout value of zero is specified, then no wait occurs if the wait cannot be satisfied immediately.

WaitStatus WaitHandle::WaitOne ( HANDLE  handle,
bool  bAlertable,
DWORD  millisecondsTimeout 
)
static

阻止当前线程,直到当前收到信号,同时使用 32 位带符号整数指定时间间隔

Member Data Documentation

HANDLE System::Threading::WaitHandle::Handle

Gets the native operating system handle


The documentation for this class was generated from the following files: