#include <thread_repair.h>
Public Member Functions | |
thread_repair_t () | |
int | create (thread_func_t aFunc, void *aData) |
void | join (void) |
void | cancel (void) |
bool | exec_lock (void) |
Private Attributes | |
bool | _works |
rpa::thread_repair_t< Thr >::thread_repair_t | ( | ) | [inline] |
void rpa::thread_repair_t< Thr >::cancel | ( | void | ) | [inline] |
It may be worth, in the future, to extend 'cancel' signature by adding a return value ? Not necessary now.
int rpa::thread_repair_t< Thr >::create | ( | thread_func_t | aFunc, | |
void * | aData | |||
) | [inline] |
If it is a simple mistake due to a temporary lack of resources, this just returns a NULL value, without throwing an exception. At this moment, this error is considered as temporary and, instead of waiting that these resources become available, the main thread executes immediately the code.
bool rpa::thread_repair_t< Thr >::exec_lock | ( | void | ) | [inline] |
void rpa::thread_repair_t< Thr >::join | ( | void | ) | [inline] |
bool rpa::thread_repair_t< Thr >::_works [private] |