AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
AWin32Event Class Reference

Encapsulates calls to CreateEvent/.

#include <AUI/Platform/win32/AWin32Event.h>

Public Member Functions#

 AWin32Event (LPSECURITY_ATTRIBUTES securityAttributes, bool manualReset, bool initialState, LPCWSTR name)
 Creates or opens a named or unnamed event object.
 
 operator HANDLE () const noexcept
 
- Public Member Functions inherited from aui::noncopyable
 noncopyable (const noncopyable &)=delete
 
noncopyableoperator= (const noncopyable &)=delete
 

Constructor & Destructor Documentation#

◆ AWin32Event()#

AWin32Event::AWin32Event ( LPSECURITY_ATTRIBUTES securityAttributes,
bool manualReset,
bool initialState,
LPCWSTR name )
Parameters
securityAttributesA pointer to a SECURITY_ATTRIBUTES structure. If this parameter is NULL, the handle cannot be inherited by child processes. The lpSecurityDescriptor member of the structure specifies a security descriptor for the new event. If lpEventAttributes is NULL, the event gets a default security descriptor. The ACLs in the default security descriptor for an event come from the primary or impersonation token of the creator.
manualResetIf this parameter is TRUE, the function creates a manual-reset event object, which requires the use of the ResetEvent function to set the event state to nonsignaled. If this parameter is FALSE, the function creates an auto-reset event object, and system automatically resets the event state to nonsignaled after a single waiting thread has been release.
initialStateIf this parameter is TRUE, the initial state of the event object is signaled; otherwise, it is nonsignaled.
nameThe name of the event object. The name is limited to MAX_PATH characters. Name comparison is case sensitive.