rpa::thread_counter< Thread > Class Template Reference

A class wrapper for threads compliant with RPA interface (create/join/cancel). More...

#include <synchro.h>

Inheritance diagram for rpa::thread_counter< Thread >:

rpa::thread_counter_base List of all members.

Public Member Functions

void cancel (void)
int create (thread_func_t aFunc, void *aData)
void join (void)
bool exec_lock (void)

Detailed Description

template<class Thread>
class rpa::thread_counter< Thread >

A class wrapper for threads compliant with RPA interface (create/join/cancel).

Counts the number of times each method is called for a given thread, and computes a very strong invariant for debugging purpose. The counters are not protected by any mutex. This is not necessary due to the way RPA uses threads.


Member Function Documentation

template<class Thread>
void rpa::thread_counter< Thread >::cancel ( void   )  [inline]

template<class Thread>
int rpa::thread_counter< Thread >::create ( thread_func_t  aFunc,
void *  aData 
) [inline]

template<class Thread>
bool rpa::thread_counter< Thread >::exec_lock ( void   )  [inline]

template<class Thread>
void rpa::thread_counter< Thread >::join ( void   )  [inline]


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