Base Framework
Public Member Functions | List of all members
WaitForObjects Class Reference

Inherits Object.

Public Member Functions

 WaitForObjects () noexcept
 
unsigned int getMaximumNumberOfObjects () const noexcept
 
void registerObject (Object *object)
 
void deregisterObject (Object *object)
 
void registerObject (Socket socket)
 
void deregisterObject (Socket socket) noexcept
 
void deregisterAll () noexcept
 
ObjectwaitForAny () const noexcept
 
ObjectwaitForAny (unsigned int timeout) const noexcept
 
void waitForAll () const noexcept
 
bool waitForAll (unsigned int timeout) const noexcept
 

Constructor & Destructor Documentation

◆ WaitForObjects()

WaitForObjects::WaitForObjects ( )
noexcept

Initializes synchronization object.

Member Function Documentation

◆ getMaximumNumberOfObjects()

unsigned int WaitForObjects::getMaximumNumberOfObjects ( ) const
noexcept

Returns the maximum number of objects allowed.

◆ waitForAll() [1/2]

void WaitForObjects::waitForAll ( ) const
noexcept

Wait for all the objects to be signaled.

◆ waitForAll() [2/2]

bool WaitForObjects::waitForAll ( unsigned int  timeout) const
noexcept
Parameters
timeoutThe timeout period.

◆ waitForAny()

Object* WaitForObjects::waitForAny ( unsigned int  timeout) const
noexcept
Parameters
timeoutThe timeout period.