|
TThreadHandle BASE_IMPEXP | mrpt::system::detail::createThreadImpl (void(*func)(void *), void *param) |
|
template<typename T > |
TThreadHandle | mrpt::system::createThread (void(*func)(T), T param) |
| Creates a new thread from a function (or static method) with one generic parameter. More...
|
|
template<typename T > |
TThreadHandle | mrpt::system::createThreadRef (void(*func)(T &), T ¶m) |
|
TThreadHandle | mrpt::system::createThread (void(*func)(void)) |
|
template<typename CLASS , typename PARAM > |
TThreadHandle | mrpt::system::createThreadFromObjectMethod (CLASS *obj, void(CLASS::*func)(PARAM), PARAM param) |
| Creates a new thread running a non-static method (so it will have access to "this") from another method of the same class - with one generic parameter. More...
|
|
template<typename CLASS , typename PARAM > |
TThreadHandle | mrpt::system::createThreadFromObjectMethodRef (CLASS *obj, void(CLASS::*func)(PARAM &), PARAM ¶m) |
|
template<typename CLASS > |
TThreadHandle | mrpt::system::createThreadFromObjectMethod (CLASS *obj, void(CLASS::*func)(void)) |
|
void BASE_IMPEXP | mrpt::system::joinThread (const TThreadHandle &threadHandle) |
| Waits until the given thread ends. More...
|
|
unsigned long BASE_IMPEXP | mrpt::system::getCurrentThreadId () MRPT_NO_THROWS |
| Returns the ID of the current thread. More...
|
|
TThreadHandle BASE_IMPEXP | mrpt::system::getCurrentThreadHandle () MRPT_NO_THROWS |
| Returns a handle to the current thread. More...
|
|
void BASE_IMPEXP | mrpt::system::exitThread () MRPT_NO_THROWS |
| Explicit close of the current (running) thread. More...
|
|
void BASE_IMPEXP | mrpt::system::getCurrentThreadTimes (time_t &creationTime, time_t &exitTime, double &cpuTime) |
| Returns the creation and exit times of the current thread and its CPU time consumed. More...
|
|
void BASE_IMPEXP | mrpt::system::changeThreadPriority (const TThreadHandle &threadHandle, TThreadPriority priority) |
| Change the priority of the given thread - for Windows, see also changeCurrentProcessPriority() More...
|
|
void BASE_IMPEXP | mrpt::system::terminateThread (TThreadHandle &threadHandle) MRPT_NO_THROWS |
| Terminate a thread, giving it no choice to delete objects, etc (use only as a last resource) More...
|
|
void BASE_IMPEXP | mrpt::system::changeCurrentProcessPriority (TProcessPriority priority) |
| Change the priority of the given process (it applies to all the threads, plus independent modifiers for each thread). More...
|
|
unsigned int BASE_IMPEXP | mrpt::system::getNumberOfProcessors () |
| Return the number of processors ("cores"), or 1 if it cannot be determined. More...
|
|
void BASE_IMPEXP | mrpt::system::sleep (int time_ms) MRPT_NO_THROWS |
| An OS-independent method for sending the current thread to "sleep" for a given period of time. More...
|
|
bool BASE_IMPEXP | mrpt::system::launchProcess (const std::string &command) |
| Executes the given command (which may contain a program + arguments), and waits until it finishes. More...
|
|