Special type of "light" non movable thread that runs the lambda function has been provided in the constructor.
More...
|
| LThread (function< bool() > pWorker) |
|
| Thread (const char *pType) |
|
virtual | ~Thread () |
|
const char * | namePtr () const |
|
bool | dispatch () |
| Lets the thread to start working.
|
|
int | join () |
| Wait until the internal thread's memory structures are finished.
|
|
void | finish () |
| Advise the thread for not continuing executing the perform method.
|
|
bool | finishRequested () const |
| Indicates if a finish was executed on this thread.
|
|
void | relocate (string pDestination) |
| Moves the thread to the specified destination.
|
|
string & | lastErrorRef () |
| Returns a reference to the last stored error message.
|
|
ErrorCode | lastCode () |
| Returns the last stored code.
|
|
bool | valid () |
| Permits to know if the object has a valid internal state.
|
|
string & | typeRef () |
| Permits to know the type of this particular object.
|
|
|
bool | prepare () |
| Provides a placeholder for the class to initialize internal data.
|
|
int | perform () |
| Performs the internal processing cycle for the thread.
|
|
void | dispose () |
| If the prepare and perform method where successful, the dispose must deinitialize everything was initialized during the prepare method.
|
|
| Thread (const char *pType, string &pReceivedState) |
| This is the protected constructor will be used by the distributed rebuilder.
|
|
virtual void | d_packState (string &pStateData) |
| Permits to package the thread contents to be send to another process or computer to continue working.
|
|
virtual bool | d_sendToDestination (string &pStateData) |
| Sends the thread state to the destination.
|
|
virtual void | d_restoreState (string &pSource) |
| Rebuilds the internal state for the thread.
|
|
| HSEPObject (const char *pType) |
| Constructor, providing the base for the state controlling instance.
|
|
virtual | ~HSEPObject () |
|
void | setLastError (string &pErrorMsgRef) |
| Assigns an error message text to the last executed operation.
|
|
void | setLastError (const string &pErrorMsgRef) |
| Assigns an error message text to the last executed operation.
|
|
void | setLastError (const char *pErrorMsg) |
| Assigns an error message text to the last executed operation.
|
|
void | setValid () |
| Defines that the object has a valid state.
|
|
void | setInvalid () |
| Defines that the object has an invalid state.
|
|
void | setLastCode (const ErrorCode pErrorCode) |
| Defines the internal result code for the object.
|
|
Special type of "light" non movable thread that runs the lambda function has been provided in the constructor.
When the lambda returns "false", the thread finish.
Definition at line 241 of file Thread.h.