#include <synchro.h>
Inheritance diagram for rpa::thread_crea:
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'. |
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.
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'.