rpa::thread_counter_base Class Reference

Implementation of the base class of all template 'thread_counter'. More...

#include <synchro.h>

Inheritance diagram for rpa::thread_counter_base:

rpa::thread_counter< Thread > List of all members.

Public Member Functions

bool dump (void) const
 Shared by all instances of the template class 'thread_counter'.
void check (void) const
 thread_counter_base ()
 ~thread_counter_base ()
void tst_cancel (void)
void tst_create (void)
void tst_join (void)
void tst_exec_lock (void)
bool operator== (const thread_counter_base &aThr2) const
 Checks the identity of two different threads's counters.

Private Attributes

size_t createNb
size_t exec_lockNb
size_t cancelNb
size_t joinNb

Detailed Description

Implementation of the base class of all template 'thread_counter'.

Its role is to count how many times a thread is started or cancelled or joined. For this, the template 'thread_counter' wraps any object which has the required thread interface : It provides the same kind of interface but interects method calls to compute statistics.


Constructor & Destructor Documentation

rpa::thread_counter_base::thread_counter_base (  ) 

rpa::thread_counter_base::~thread_counter_base (  ) 


Member Function Documentation

void rpa::thread_counter_base::check ( void   )  const

bool rpa::thread_counter_base::dump ( void   )  const

Shared by all instances of the template class 'thread_counter'.

bool rpa::thread_counter_base::operator== ( const thread_counter_base aThr2  )  const

Checks the identity of two different threads's counters.

This helps for tests : It checks that two threads have the same profile of function calls. That is, that algorithms used them the same way.

void rpa::thread_counter_base::tst_cancel ( void   ) 

void rpa::thread_counter_base::tst_create ( void   ) 

void rpa::thread_counter_base::tst_exec_lock ( void   ) 

void rpa::thread_counter_base::tst_join ( void   ) 


Member Data Documentation

size_t rpa::thread_counter_base::cancelNb [private]

size_t rpa::thread_counter_base::createNb [private]

size_t rpa::thread_counter_base::exec_lockNb [private]

size_t rpa::thread_counter_base::joinNb [private]


The documentation for this class was generated from the following files:
Generated on Tue Sep 25 10:20:38 2007 for rpa by  doxygen 1.4.7