#include <synchro.h>
Inheritance diagram for rpa::thread_counter_base:
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 |
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.
rpa::thread_counter_base::thread_counter_base | ( | ) |
rpa::thread_counter_base::~thread_counter_base | ( | ) |
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 | ) |
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] |