Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Static Private Member Functions | List of all members
UThreadC< Thread_T > Class Template Referenceabstract

#include <UThreadC.h>

Classes

struct  Instance
 

Public Types

typedef THREAD_HANDLE Handle
 
typedef THREAD_HANDLE Handle
 
typedef void(* Handler) (Thread_R)
 
typedef void(* Handler) (Thread_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 (const Handle &H)
 
static int Detach (Handle H)
 
static int Join (const Handle &H)
 
static int Join (Handle H)
 
static int Kill (const Handle &H)
 
static int Kill (Handle H)
 

Public Attributes

const typedef Thread_T & Thread_C_R
 

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

◆ Handle [1/2]

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

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

◆ Handle [2/2]

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

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

◆ Handler [1/2]

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

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

◆ Handler [2/2]

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

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

◆ Thread_R [1/2]

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

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

◆ Thread_R [2/2]

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

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

Constructor & Destructor Documentation

◆ ~UThreadC()

template<typename Thread_T >
virtual UThreadC< Thread_T >::~UThreadC ( )
inlinevirtual

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

◆ UThreadC() [1/2]

template<typename Thread_T >
UThreadC< Thread_T >::UThreadC ( )
inlineprotected

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

◆ UThreadC() [2/2]

template<typename Thread_T >
UThreadC< Thread_T >::UThreadC ( )
inlineprotected

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

Member Function Documentation

◆ Create() [1/4]

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 
)
inlinestatic

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

◆ Create() [2/4]

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 
)
inlinestatic

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

◆ Create() [3/4]

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.

◆ Create() [4/4]

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 158 of file Win32/UThreadC.h.

◆ Detach() [1/2]

template<typename Thread_T >
static int UThreadC< Thread_T >::Detach ( const Handle H)
inlinestatic

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

◆ Detach() [2/2]

template<typename Thread_T >
static int UThreadC< Thread_T >::Detach ( Handle  H)
inlinestatic

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

◆ Exit() [1/2]

template<typename Thread_T >
static void UThreadC< Thread_T >::Exit ( )
inlinestaticprotected

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

◆ Exit() [2/2]

template<typename Thread_T >
static void UThreadC< Thread_T >::Exit ( )
inlinestaticprotected

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

◆ Join() [1/2]

template<typename Thread_T >
static int UThreadC< Thread_T >::Join ( const Handle H)
inlinestatic

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

◆ Join() [2/2]

template<typename Thread_T >
static int UThreadC< Thread_T >::Join ( Handle  H)
inlinestatic

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

◆ Kill() [1/2]

template<typename Thread_T >
static int UThreadC< Thread_T >::Kill ( const Handle H)
inlinestatic

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

◆ Kill() [2/2]

template<typename Thread_T >
static int UThreadC< Thread_T >::Kill ( Handle  H)
inlinestatic

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

◆ M_Create() [1/2]

template<typename Thread_T >
static const UMutex& UThreadC< Thread_T >::M_Create ( )
inlinestaticprivate

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

◆ M_Create() [2/2]

template<typename Thread_T >
static const UMutex& UThreadC< Thread_T >::M_Create ( )
inlinestaticprivate

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

◆ S_Create() [1/2]

template<typename Thread_T >
static USemaphore& UThreadC< Thread_T >::S_Create ( )
inlinestaticprivate

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

◆ S_Create() [2/2]

template<typename Thread_T >
static const USemaphore& UThreadC< Thread_T >::S_Create ( )
inlinestaticprivate

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

◆ Self() [1/2]

template<typename Thread_T >
static Handle UThreadC< Thread_T >::Self ( )
inlinestaticprotected

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

◆ Self() [2/2]

template<typename Thread_T >
static int UThreadC< Thread_T >::Self ( )
inlinestaticprotected

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

◆ TestCancel() [1/2]

template<typename Thread_T >
static void UThreadC< Thread_T >::TestCancel ( )
inlinestaticprotected

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

◆ TestCancel() [2/2]

template<typename Thread_T >
static void UThreadC< Thread_T >::TestCancel ( )
inlinestaticprotected

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

◆ ThreadMain() [1/2]

template<typename Thread_T >
virtual void UThreadC< Thread_T >::ThreadMain ( Thread_R  )
protectedpure virtual

◆ ThreadMain() [2/2]

template<typename Thread_T >
virtual void UThreadC< Thread_T >::ThreadMain ( Thread_R  )
protectedpure virtual

◆ ThreadMainHandler() [1/2]

template<typename Thread_T >
static void* UThreadC< Thread_T >::ThreadMainHandler ( Instance Param)
inlinestaticprivate

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

◆ ThreadMainHandler() [2/2]

template<typename Thread_T >
static THREAD_RET_T THREAD_CALL UThreadC< Thread_T >::ThreadMainHandler ( Instance Param)
inlinestaticprivate

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

Member Data Documentation

◆ Thread_C_R

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

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


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:26