Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Static Private Member Functions
UThreadC< Thread_T > Class Template Reference

#include <UThreadC.h>

List of all members.

Classes

struct  Instance

Public Types

typedef THREAD_HANDLE Handle
typedef THREAD_HANDLE Handle
typedef void(* Handler )(Thread_R)
typedef void(* Handler )(Thread_R)
typedef const Thread_T & Thread_C_R
typedef const Thread_T & Thread_C_R
typedef Thread_T & Thread_R
typedef Thread_T & Thread_R

Public Member Functions

int Create (Thread_C_R Param, Handle *const &H=0, const bool &CreateDetached=false, const unsigned int &StackSize=0, const bool &CancelEnable=false, const bool &CancelAsync=false) const
int Create (Thread_C_R Param, Handle *const &H=0, const bool &CreateDetached=false, const unsigned int &StackSize=0, const bool &CancelEnable=false, const bool &CancelAsync=false) const
virtual ~UThreadC ()

Static Public Member Functions

static int Create (const Handler &Function, Thread_C_R Param, Handle *const &H=0, const bool &CreateDetached=false, const unsigned int &StackSize=0, const bool &CancelEnable=false, const bool &CancelAsync=false)
static int Create (const Handler &Function, Thread_C_R Param, Handle *const &H=0, const bool &CreateDetached=false, const unsigned int &StackSize=0, const bool &CancelEnable=false, const bool &CancelAsync=false)
static int Detach (Handle H)
static int Detach (const Handle &H)
static int Join (Handle H)
static int Join (const Handle &H)
static int Kill (Handle H)
static int Kill (const Handle &H)

Protected Member Functions

virtual void ThreadMain (Thread_R)=0
virtual void ThreadMain (Thread_R)=0
 UThreadC ()
 UThreadC ()

Static Protected Member Functions

static void Exit ()
static void Exit ()
static Handle Self ()
static int Self ()
static void TestCancel ()
static void TestCancel ()

Static Private Member Functions

static const UMutexM_Create ()
static const UMutexM_Create ()
static USemaphoreS_Create ()
static const USemaphoreS_Create ()
static void * ThreadMainHandler (Instance *Param)
static THREAD_RET_T THREAD_CALL ThreadMainHandler (Instance *Param)

Detailed Description

template<typename Thread_T>
class UThreadC< Thread_T >

Definition at line 66 of file Posix/UThreadC.h.


Member Typedef Documentation

template<typename Thread_T>
typedef THREAD_HANDLE UThreadC< Thread_T >::Handle

Definition at line 75 of file Posix/UThreadC.h.

template<typename Thread_T>
typedef THREAD_HANDLE UThreadC< Thread_T >::Handle

Definition at line 99 of file Win32/UThreadC.h.

template<typename Thread_T>
typedef void( * UThreadC< Thread_T >::Handler)(Thread_R)

Definition at line 76 of file Posix/UThreadC.h.

template<typename Thread_T>
typedef void(* UThreadC< Thread_T >::Handler)(Thread_R)

Definition at line 100 of file Win32/UThreadC.h.

template<typename Thread_T>
typedef const Thread_T& UThreadC< Thread_T >::Thread_C_R

Definition at line 73 of file Posix/UThreadC.h.

template<typename Thread_T>
typedef const Thread_T& UThreadC< Thread_T >::Thread_C_R

Definition at line 97 of file Win32/UThreadC.h.

template<typename Thread_T>
typedef Thread_T& UThreadC< Thread_T >::Thread_R

Definition at line 69 of file Posix/UThreadC.h.

template<typename Thread_T>
typedef Thread_T& UThreadC< Thread_T >::Thread_R

Definition at line 93 of file Win32/UThreadC.h.


Constructor & Destructor Documentation

template<typename Thread_T>
virtual UThreadC< Thread_T >::~UThreadC ( ) [inline, virtual]

Definition at line 78 of file Posix/UThreadC.h.

template<typename Thread_T>
UThreadC< Thread_T >::UThreadC ( ) [inline, protected]

Definition at line 81 of file Posix/UThreadC.h.

template<typename Thread_T>
UThreadC< Thread_T >::UThreadC ( ) [inline, protected]

Definition at line 103 of file Win32/UThreadC.h.


Member Function Documentation

template<typename Thread_T>
static int UThreadC< Thread_T >::Create ( const Handler Function,
Thread_C_R  Param,
Handle *const &  H = 0,
const bool &  CreateDetached = false,
const unsigned int &  StackSize = 0,
const bool &  CancelEnable = false,
const bool &  CancelAsync = false 
) [inline, static]

Definition at line 97 of file Posix/UThreadC.h.

template<typename Thread_T>
static int UThreadC< Thread_T >::Create ( const Handler Function,
Thread_C_R  Param,
Handle *const &  H = 0,
const bool &  CreateDetached = false,
const unsigned int &  StackSize = 0,
const bool &  CancelEnable = false,
const bool &  CancelAsync = false 
) [inline, static]

Definition at line 125 of file Win32/UThreadC.h.

template<typename Thread_T>
int UThreadC< Thread_T >::Create ( Thread_C_R  Param,
Handle *const &  H = 0,
const bool &  CreateDetached = false,
const unsigned int &  StackSize = 0,
const bool &  CancelEnable = false,
const bool &  CancelAsync = false 
) const [inline]

Definition at line 131 of file Posix/UThreadC.h.

template<typename Thread_T>
int UThreadC< Thread_T >::Create ( Thread_C_R  Param,
Handle *const &  H = 0,
const bool &  CreateDetached = false,
const unsigned int &  StackSize = 0,
const bool &  CancelEnable = false,
const bool &  CancelAsync = false 
) const [inline]

Definition at line 157 of file Win32/UThreadC.h.

template<typename Thread_T>
static int UThreadC< Thread_T >::Detach ( Handle  H) [inline, static]

Definition at line 172 of file Posix/UThreadC.h.

template<typename Thread_T>
static int UThreadC< Thread_T >::Detach ( const Handle H) [inline, static]

Definition at line 205 of file Win32/UThreadC.h.

template<typename Thread_T>
static void UThreadC< Thread_T >::Exit ( ) [inline, static, protected]

Definition at line 85 of file Posix/UThreadC.h.

template<typename Thread_T>
static void UThreadC< Thread_T >::Exit ( ) [inline, static, protected]

Definition at line 107 of file Win32/UThreadC.h.

template<typename Thread_T>
static int UThreadC< Thread_T >::Join ( Handle  H) [inline, static]

Definition at line 164 of file Posix/UThreadC.h.

template<typename Thread_T>
static int UThreadC< Thread_T >::Join ( const Handle H) [inline, static]

Definition at line 188 of file Win32/UThreadC.h.

template<typename Thread_T>
static int UThreadC< Thread_T >::Kill ( Handle  H) [inline, static]

Definition at line 168 of file Posix/UThreadC.h.

template<typename Thread_T>
static int UThreadC< Thread_T >::Kill ( const Handle H) [inline, static]

Definition at line 202 of file Win32/UThreadC.h.

template<typename Thread_T>
static const UMutex& UThreadC< Thread_T >::M_Create ( ) [inline, static, private]

Definition at line 177 of file Posix/UThreadC.h.

template<typename Thread_T>
static const UMutex& UThreadC< Thread_T >::M_Create ( ) [inline, static, private]

Definition at line 210 of file Win32/UThreadC.h.

template<typename Thread_T>
static USemaphore& UThreadC< Thread_T >::S_Create ( ) [inline, static, private]

Definition at line 178 of file Posix/UThreadC.h.

template<typename Thread_T>
static const USemaphore& UThreadC< Thread_T >::S_Create ( ) [inline, static, private]

Definition at line 211 of file Win32/UThreadC.h.

template<typename Thread_T>
static Handle UThreadC< Thread_T >::Self ( ) [inline, static, protected]

Definition at line 92 of file Posix/UThreadC.h.

template<typename Thread_T>
static int UThreadC< Thread_T >::Self ( ) [inline, static, protected]

Definition at line 113 of file Win32/UThreadC.h.

template<typename Thread_T>
static void UThreadC< Thread_T >::TestCancel ( ) [inline, static, protected]

Definition at line 88 of file Posix/UThreadC.h.

template<typename Thread_T>
static void UThreadC< Thread_T >::TestCancel ( ) [inline, static, protected]

Definition at line 110 of file Win32/UThreadC.h.

template<typename Thread_T>
virtual void UThreadC< Thread_T >::ThreadMain ( Thread_R  ) [protected, pure virtual]
template<typename Thread_T>
virtual void UThreadC< Thread_T >::ThreadMain ( Thread_R  ) [protected, pure virtual]
template<typename Thread_T>
static void* UThreadC< Thread_T >::ThreadMainHandler ( Instance Param) [inline, static, private]

Definition at line 180 of file Posix/UThreadC.h.

template<typename Thread_T>
static THREAD_RET_T THREAD_CALL UThreadC< Thread_T >::ThreadMainHandler ( Instance Param) [inline, static, private]

Definition at line 213 of file Win32/UThreadC.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jun 6 2019 21:59:39