sigx++  2.0.1
Public Member Functions
sigx::dld::syncmessages_counter Class Reference

Holds a counter of synchronous messages between two threads. More...

#include <dispatcher.h>

Public Member Functions

 syncmessages_counter (const threadhandle_type &threadA)
 Construct a syncmessages_counter object. More...
 
syncmessages_counteroperator++ ()
 Increase the count of synchronous messages to the server thread. More...
 
syncmessages_counteroperator-- ()
 Decrease the count of synchronous messages to the server thread. More...
 
 operator bool () const
 Test whether the client thread has some synchronous messages from the server thread pending. More...
 

Detailed Description

Holds a counter of synchronous messages between two threads.

Constructor & Destructor Documentation

sigx::dld::syncmessages_counter::syncmessages_counter ( const threadhandle_type threadA)

Construct a syncmessages_counter object.

Parameters
threadAhandle to thread A as a reference point to find out which thread is calling syncmessages_counter's methods.

Member Function Documentation

sigx::dld::syncmessages_counter::operator bool ( ) const

Test whether the client thread has some synchronous messages from the server thread pending.

Note
Always called by the client thread.
syncmessages_counter & sigx::dld::syncmessages_counter::operator++ ( )

Increase the count of synchronous messages to the server thread.

Note
Always called by the client thread.
syncmessages_counter & sigx::dld::syncmessages_counter::operator-- ( )

Decrease the count of synchronous messages to the server thread.

Note
Always called by the server thread.

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