Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
rp::hal::Thread Class Reference

#include <thread.h>

List of all members.

Public Types

enum  priority_val_t {
  PRIORITY_REALTIME = 0, PRIORITY_HIGH = 1, PRIORITY_NORMAL = 2, PRIORITY_LOW = 3,
  PRIORITY_IDLE = 4
}

Public Member Functions

void * getData ()
_word_size_t getHandle ()
priority_val_t getPriority ()
u_result join (unsigned long timeout=-1)
bool operator== (const Thread &right)
u_result setPriority (priority_val_t p)
u_result terminate ()
 Thread ()
 ~Thread ()

Static Public Member Functions

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=NULL)
template<class T , u_result(T::*)(void) PROC>
static Thread create_member (T *pthis)

Protected Member Functions

 Thread (thread_proc_t proc, void *data)

Protected Attributes

void * _data
thread_proc_t _func
_word_size_t _handle

Detailed Description

Definition at line 43 of file thread.h.


Member Enumeration Documentation

Enumerator:
PRIORITY_REALTIME 
PRIORITY_HIGH 
PRIORITY_NORMAL 
PRIORITY_LOW 
PRIORITY_IDLE 

Definition at line 46 of file thread.h.


Constructor & Destructor Documentation

Definition at line 69 of file thread.h.

Definition at line 70 of file thread.h.

rp::hal::Thread::Thread ( thread_proc_t  proc,
void *  data 
) [inline, protected]

Definition at line 80 of file thread.h.


Member Function Documentation

template<class T , u_result(T::*)(void) PROC>
static _word_size_t THREAD_PROC rp::hal::Thread::_thread_thunk ( void *  data) [inline, static]

Definition at line 62 of file thread.h.

Thread rp::hal::Thread::create ( thread_proc_t  proc,
void *  data = NULL 
) [static]

Definition at line 41 of file linux/thread.hpp.

template<class T , u_result(T::*)(void) PROC>
static Thread rp::hal::Thread::create_member ( T pthis) [inline, static]

Definition at line 56 of file thread.h.

void* rp::hal::Thread::getData ( ) [inline]

Definition at line 73 of file thread.h.

Definition at line 71 of file thread.h.

Definition at line 103 of file linux/thread.hpp.

u_result rp::hal::Thread::join ( unsigned long  timeout = -1)

Definition at line 129 of file linux/thread.hpp.

bool rp::hal::Thread::operator== ( const Thread right) [inline]

Definition at line 78 of file thread.h.

Definition at line 60 of file linux/thread.hpp.

Definition at line 53 of file linux/thread.hpp.


Member Data Documentation

void* rp::hal::Thread::_data [protected]

Definition at line 81 of file thread.h.

thread_proc_t rp::hal::Thread::_func [protected]

Definition at line 82 of file thread.h.

Definition at line 83 of file thread.h.


The documentation for this class was generated from the following files:


rplidar_ros
Author(s):
autogenerated on Fri Dec 16 2016 03:59:16