Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

synchronizer Class Reference

#include <synchronizer.h>

Inheritance diagram for synchronizer:

actionlistener rt_sched_sync sync_null_t List of all members.

Public Member Functions

 synchronizer (const syncref &ref, postmaster &p)
virtual ~synchronizer ()
virtual void receive_msg (message m)
virtual message request_msg (const actorref &a)
virtual void ack_msg (message m)

Protected Types

enum  poll_result { DEFAULT, REMOVE }

Protected Member Functions

virtual void start_polling ()
virtual void end_polling ()
virtual void poll_triggers ()=0
virtual poll_result poll_msg (message &m)=0
virtual int exception_handler (const timing_exception &)=0

Protected Attributes

syncref name
postmasterPostMaster

Static Protected Attributes

static const int TERMINATE = 99
static const int KILLNODE = 443556
static const int CONTINUE = 0

Private Member Functions

virtual void poll_master ()

Private Attributes

pthread_t m_pollthread
lock_map< actorref, cached_msgmsg_cache
lock_list< messagem_incoming

Friends

void * start_polling_func_s (synchronizer *s)

Classes

struct  cached_msg

Member Enumeration Documentation

enum synchronizer::poll_result [protected]
 

Enumerator:
DEFAULT 
REMOVE 


Constructor & Destructor Documentation

synchronizer::synchronizer const syncref ref,
postmaster p
 

virtual synchronizer::~synchronizer  )  [inline, virtual]
 


Member Function Documentation

void synchronizer::ack_msg message  m  )  [virtual]
 

void synchronizer::end_polling  )  [protected, virtual]
 

virtual int synchronizer::exception_handler const timing_exception  )  [protected, pure virtual]
 

Implemented in sync_null_t.

void synchronizer::poll_master  )  [private, virtual]
 

virtual poll_result synchronizer::poll_msg message m  )  [protected, pure virtual]
 

Implemented in sync_null_t.

virtual void synchronizer::poll_triggers  )  [protected, pure virtual]
 

Implemented in sync_null_t.

void synchronizer::receive_msg message  m  )  [virtual]
 

message synchronizer::request_msg const actorref a  )  [virtual]
 

void synchronizer::start_polling  )  [protected, virtual]
 


Friends And Related Function Documentation

void* start_polling_func_s synchronizer s  )  [friend]
 


Member Data Documentation

const int synchronizer::CONTINUE = 0 [static, protected]
 

const int synchronizer::KILLNODE = 443556 [static, protected]
 

lock_list<message> synchronizer::m_incoming [private]
 

pthread_t synchronizer::m_pollthread [private]
 

lock_map<actorref, cached_msg> synchronizer::msg_cache [private]
 

syncref synchronizer::name [protected]
 

postmaster& synchronizer::PostMaster [protected]
 

const int synchronizer::TERMINATE = 99 [static, protected]
 


The documentation for this class was generated from the following files:
Generated on Wed May 24 23:03:25 2006 for RTSync by  doxygen 1.4.4