ACE 8.0.1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Attributes | Private Member Functions | List of all members
ACE_Event_T< TIME_POLICY > Class Template Reference

A wrapper around the Win32 event locking mechanism. More...

#include <Event.h>

Inheritance diagram for ACE_Event_T< TIME_POLICY >:
Inheritance graph
[legend]
Collaboration diagram for ACE_Event_T< TIME_POLICY >:
Collaboration graph
[legend]

Public Member Functions

 ACE_Event_T (int manual_reset=0, int initial_state=0, int type=USYNC_THREAD, const ACE_TCHAR *name=0, void *arg=0, LPSECURITY_ATTRIBUTES sa=0)
 Constructor that creates event.
 
virtual ~ACE_Event_T ()=default
 Implicitly destroy the event variable.
 
ACE_Time_Value_T< TIME_POLICYgettimeofday () const
 
void set_time_policy (TIME_POLICY const &time_policy)
 
- Public Member Functions inherited from ACE_Event_Base
virtual ~ACE_Event_Base ()
 Implicitly destroy the event variable.
 
int remove ()
 
ACE_event_t handle () const
 Underlying handle to event.
 
void handle (ACE_event_t new_handle)
 
int wait ()
 
int wait (const ACE_Time_Value *abstime, int use_absolute_time=1)
 
int signal ()
 
int pulse ()
 
int reset ()
 Set to nonsignaled state.
 
void dump () const
 Dump the state of an object.
 

Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks.
 
- Public Attributes inherited from ACE_Event_Base
 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks.
 

Protected Attributes

TIME_POLICY time_policy_
 The policy to return the current time of day.
 
- Protected Attributes inherited from ACE_Event_Base
ACE_event_t handle_
 The underlying handle.
 
bool removed_
 

Private Member Functions

 ACE_Event_T (const ACE_Event_T< TIME_POLICY > &event)=delete
 
const ACE_Event_Toperator= (const ACE_Event_T< TIME_POLICY > &rhs)=delete
 

Additional Inherited Members

- Protected Member Functions inherited from ACE_Event_Base
 ACE_Event_Base ()
 Only derived classes allowed to construct event.
 

Detailed Description

template<class TIME_POLICY = ACE_System_Time_Policy>
class ACE_Event_T< TIME_POLICY >

A wrapper around the Win32 event locking mechanism.

Portable implementation of an Event mechanism, which is native to Win32, but must be emulated on UNIX. All platforms support process-scope locking support. However, only Win32 platforms support global naming and system-scope locking support.

Constructor & Destructor Documentation

◆ ACE_Event_T() [1/2]

template<class TIME_POLICY = ACE_System_Time_Policy>
ACE_Event_T< TIME_POLICY >::ACE_Event_T ( int manual_reset = 0,
int initial_state = 0,
int type = USYNC_THREAD,
const ACE_TCHAR * name = 0,
void * arg = 0,
LPSECURITY_ATTRIBUTES sa = 0 )

Constructor that creates event.

◆ ~ACE_Event_T()

template<class TIME_POLICY = ACE_System_Time_Policy>
virtual ACE_Event_T< TIME_POLICY >::~ACE_Event_T ( )
virtualdefault

Implicitly destroy the event variable.

◆ ACE_Event_T() [2/2]

template<class TIME_POLICY = ACE_System_Time_Policy>
ACE_Event_T< TIME_POLICY >::ACE_Event_T ( const ACE_Event_T< TIME_POLICY > & event)
privatedelete

Member Function Documentation

◆ gettimeofday()

template<class TIME_POLICY >
ACE_Time_Value_T< TIME_POLICY > ACE_Event_T< TIME_POLICY >::gettimeofday ( ) const

Get the current time of day according to the queue's TIME_POLICY. Allows users to initialize timeout values using correct time policy.

◆ operator=()

template<class TIME_POLICY = ACE_System_Time_Policy>
const ACE_Event_T & ACE_Event_T< TIME_POLICY >::operator= ( const ACE_Event_T< TIME_POLICY > & rhs)
privatedelete

◆ set_time_policy()

template<class TIME_POLICY >
void ACE_Event_T< TIME_POLICY >::set_time_policy ( TIME_POLICY const & time_policy)

Allows applications to control how the event gets the time of day.

Member Data Documentation

◆ ACE_ALLOC_HOOK_DECLARE

template<class TIME_POLICY = ACE_System_Time_Policy>
ACE_Event_T< TIME_POLICY >::ACE_ALLOC_HOOK_DECLARE

Declare the dynamic allocation hooks.

◆ time_policy_

template<class TIME_POLICY = ACE_System_Time_Policy>
TIME_POLICY ACE_Event_T< TIME_POLICY >::time_policy_
protected

The policy to return the current time of day.


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