1 #ifndef CMR_PROCESSOR_H_INCLUDED
2 #define CMR_PROCESSOR_H_INCLUDED
5 #include "ActionGroup.h"
9 typedef bool (*ProcessFunction)(
void*);
32 Processor(
const char* name,
const int nb_max_thread,
int min_thread);
33 Processor(
const int nb_max_thread,
int min_thread);
45 bool start(
const char* name,
int min_thread = 0,
int max_thread = 64);
52 bool submit(
const PAction& action);
66 bool submit(ProcessFunction f,
void* p);
72 void remove_from_submitted_action(
const PAction& action);
99 const AString& get_name()
const;
104 bool waitAction(
const PAction& action,
const int nTimeOut_ms = 0);
122 #endif //CMR_PROCESSOR_H_INCLUDED
Definition: ActionGroup.h:12
AutoRef is a smart pointer on RefObject objects. AutoRef is templatized with the type of the pointed ...
Definition: AutoRef.h:86
Definition: Processor.h:16