rpa::thread_crea Struct Reference

Pseudo-parallel thread class for making deterministic tests. More...

#include <synchro.h>

Inheritance diagram for rpa::thread_crea:

rpa::thread_fast_t< thread_crea, Mtx > List of all members.

Public Member Functions

int create (thread_func_t aFunc, void *aData)
 The function is executed by the main thread when it calls the method 'create'.
void join (void)
 This does nothing because the function is executed by 'create'.

Detailed Description

Pseudo-parallel thread class for making deterministic tests.

Generally speaking, we try to build everything we need, just with abstract types of mutex and thread. The idea is to describe more sophisticated features into templates, which can be stacked on top of the other, while still having the same interface. This gives to the calling program the choice to take only the mechanism he/she needs, and simplify unit tests of specific template/mechanisms. The role of this thread is to make better single-threaded tests : All the code for multi-threading is there, and executed, but all possibility of race conditions is eliminated.


Member Function Documentation

int rpa::thread_crea::create ( thread_func_t  aFunc,
void *  aData 
) [inline]

The function is executed by the main thread when it calls the method 'create'.

void rpa::thread_crea::join ( void   )  [inline]

This does nothing because the function is executed by 'create'.


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