#include <mrpt/utils/utils_defs.h>
Go to the source code of this file.
Classes | |
struct | mrpt::system::TThreadHandle |
This structure contains the information needed to interface the threads API on each platform: More... | |
class | mrpt::system::detail::ThreadCreateFunctor< T > |
class | mrpt::system::detail::ThreadCreateFunctor< void * > |
class | mrpt::system::detail::ThreadCreateFunctorNoParams |
class | mrpt::system::detail::ThreadCreateObjectFunctor< CLASS, PARAM > |
class | mrpt::system::detail::ThreadCreateObjectFunctorNoParams< CLASS > |
Namespaces | |
namespace | mrpt |
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries. | |
namespace | mrpt::system |
This namespace provides a OS-independent interface to many useful functions: filenames manipulation, time and date, string parsing, file I/O, threading, memory allocation, etc. | |
namespace | mrpt::system::detail |
Auxiliary classes used internally to MRPT. | |
Functions | |
TThreadHandle BASE_IMPEXP | mrpt::system::detail::createThreadImpl (void(*func)(void *), void *param) |
Threads | |
| |
enum | mrpt::system::TProcessPriority { mrpt::system::ppIdle = 0, mrpt::system::ppNormal, mrpt::system::ppHigh, mrpt::system::ppVeryHigh } |
The type for cross-platform process (application) priorities. More... | |
enum | mrpt::system::TThreadPriority { mrpt::system::tpLowests = -15, mrpt::system::tpLower = -2, mrpt::system::tpLow = -1, mrpt::system::tpNormal = 0, mrpt::system::tpHigh = 1, mrpt::system::tpHigher = 2, mrpt::system::tpHighest = 15 } |
The type for cross-platform thread priorities. More... | |
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. | |
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. | |
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. | |
unsigned long BASE_IMPEXP | mrpt::system::getCurrentThreadId () MRPT_NO_THROWS |
Returns the ID of the current thread. | |
TThreadHandle BASE_IMPEXP | mrpt::system::getCurrentThreadHandle () MRPT_NO_THROWS |
Returns a handle to the current thread. | |
void BASE_IMPEXP | mrpt::system::exitThread () MRPT_NO_THROWS |
Explicit close of the current (running) thread. | |
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. | |
void BASE_IMPEXP | mrpt::system::changeThreadPriority (const TThreadHandle &threadHandle, TThreadPriority priority) |
Change the priority of the given thread. | |
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). | |
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). | |
unsigned int BASE_IMPEXP | mrpt::system::getNumberOfProcessors () |
Return the number of processors ("cores"), or 1 if it cannot be determined. | |
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. | |
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. |
Page generated by Doxygen 1.7.1 for MRPT 0.9.4 SVN: at Mon Jan 10 23:33:19 UTC 2011 |