#include <rplidar/src/hal/thread.h>
Public Types | |
enum | priority_val_t { PRIORITY_REALTIME = 0, PRIORITY_HIGH = 1, PRIORITY_NORMAL = 2, PRIORITY_LOW = 3, PRIORITY_IDLE = 4 } |
Public Member Functions | |
~Thread () | |
Thread () | |
_word_size_t | getHandle () |
u_result | terminate () |
void * | getData () |
u_result | join (unsigned long timeout=-1) |
u_result | setPriority (priority_val_t p) |
priority_val_t | getPriority () |
bool | operator== (const Thread &right) |
Static Public Member Functions | |
template<class T , u_result(T::*)(void) PROC> | |
static Thread | create_member (T *pthis) |
template<class T , u_result(T::*)(void) PROC> | |
static _word_size_t THREAD_PROC | _thread_thunk (void *data) |
static Thread | create (thread_proc_t proc, void *data=nullptr) |
Protected Member Functions | |
Thread (thread_proc_t proc, void *data) | |
Protected Attributes | |
void * | _data |
thread_proc_t | _func |
_word_size_t | _handle |
|
inlineprotected |
|
inlinestatic |
|
static |
Definition at line 41 of file linux/thread.hpp.
References _handle.
Referenced by create_member().
|
inlinestatic |
|
inline |
Definition at line 71 of file thread.h.
References _handle.
Referenced by rp::standalone::rplidar::RPlidarDriverSerialImpl::startScanExpress(), and rp::standalone::rplidar::RPlidarDriverSerialImpl::startScanNormal().
Thread::priority_val_t rp::hal::Thread::getPriority | ( | ) |
Definition at line 103 of file linux/thread.hpp.
References _handle, PRIORITY_HIGH, PRIORITY_NORMAL, and PRIORITY_REALTIME.
u_result rp::hal::Thread::join | ( | unsigned long | timeout = -1 | ) |
Definition at line 129 of file linux/thread.hpp.
References _handle, and RESULT_OK.
Referenced by rp::standalone::rplidar::RPlidarDriverSerialImpl::_disableDataGrabbing().
|
inline |
u_result rp::hal::Thread::setPriority | ( | priority_val_t | p | ) |
Definition at line 60 of file linux/thread.hpp.
References _handle, PRIORITY_HIGH, PRIORITY_IDLE, PRIORITY_LOW, PRIORITY_NORMAL, PRIORITY_REALTIME, RESULT_OK, and RESULT_OPERATION_FAIL.
u_result rp::hal::Thread::terminate | ( | ) |
Definition at line 53 of file linux/thread.hpp.
References _handle, RESULT_OK, and RESULT_OPERATION_FAIL.
|
protected |
|
protected |
|
protected |
Definition at line 90 of file thread.h.
Referenced by create(), getHandle(), getPriority(), join(), operator==(), setPriority(), and terminate().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019 |