#include <UThreadC.h>
Classes | |
struct | Instance |
Public Types | |
typedef THREAD_HANDLE | Handle |
typedef THREAD_HANDLE | Handle |
typedef void(* | Handler )() |
typedef void(* | Handler )() |
Public Member Functions | |
int | Create (Handle *const &H=0, const bool &CreateDetached=false, const unsigned int &StackSize=0, const bool &CancelEnable=false, const bool &CancelAsync=false) const |
int | Create (Handle *const &H=0, const bool &CreateDetached=false, const unsigned int &StackSize=0, const bool &CancelEnable=false, const bool &CancelAsync=false) const |
int | Create (unsigned long &ThreadId, Handle *const &H=0, const bool &CreateDetached=false, const unsigned int &StackSize=0, const bool &CancelEnable=false, const bool &CancelAsync=false) const |
int | Create (int &ThreadId, Handle *const &H=0, const bool &CreateDetached=false, const unsigned int &StackSize=0, const bool &CancelEnable=false, const bool &CancelAsync=false) const |
virtual | ~UThreadC () |
virtual | ~UThreadC () |
Static Public Member Functions | |
static int | Create (const Handler &Function, 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, 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 (const Handle &H) |
static int | Join (Handle H) |
static int | Kill (Handle H) |
static int | Kill (const Handle &H) |
Protected Member Functions | |
virtual void | ThreadMain ()=0 |
virtual void | ThreadMain ()=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 UMutex & | M_Create () |
static USemaphore & | S_Create () |
static void * | ThreadMainHandler (Instance *Param) |
static THREAD_RET_T THREAD_CALL | ThreadMainHandler (UThreadC< void > *Param) |
static THREAD_RET_T THREAD_CALL | ThreadMainHandler_S (Handler Param) |
Definition at line 221 of file Posix/UThreadC.h.
typedef THREAD_HANDLE UThreadC< void >::Handle |
Definition at line 224 of file Posix/UThreadC.h.
typedef THREAD_HANDLE UThreadC< void >::Handle |
Definition at line 247 of file Win32/UThreadC.h.
Definition at line 228 of file Posix/UThreadC.h.
Definition at line 251 of file Win32/UThreadC.h.
Definition at line 230 of file Posix/UThreadC.h.
Definition at line 233 of file Posix/UThreadC.h.
Definition at line 253 of file Win32/UThreadC.h.
Definition at line 256 of file Win32/UThreadC.h.
static int UThreadC< void >::Create | ( | const Handler & | Function, |
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 248 of file Posix/UThreadC.h.
static int UThreadC< void >::Create | ( | const Handler & | Function, |
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 279 of file Win32/UThreadC.h.
int UThreadC< void >::Create | ( | Handle *const & | H = 0 , |
const bool & | CreateDetached = false , |
||
const unsigned int & | StackSize = 0 , |
||
const bool & | CancelEnable = false , |
||
const bool & | CancelAsync = false |
||
) | const [inline] |
Reimplemented in UThread.
Definition at line 281 of file Posix/UThreadC.h.
int UThreadC< void >::Create | ( | Handle *const & | H = 0 , |
const bool & | CreateDetached = false , |
||
const unsigned int & | StackSize = 0 , |
||
const bool & | CancelEnable = false , |
||
const bool & | CancelAsync = false |
||
) | const [inline] |
Reimplemented in UThread.
Definition at line 301 of file Win32/UThreadC.h.
int UThreadC< void >::Create | ( | unsigned long & | ThreadId, |
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 313 of file Posix/UThreadC.h.
int UThreadC< void >::Create | ( | int & | ThreadId, |
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 323 of file Win32/UThreadC.h.
Reimplemented in UThread.
Definition at line 353 of file Posix/UThreadC.h.
Definition at line 362 of file Win32/UThreadC.h.
Definition at line 237 of file Posix/UThreadC.h.
Definition at line 260 of file Win32/UThreadC.h.
Definition at line 345 of file Win32/UThreadC.h.
Reimplemented in UThread.
Definition at line 347 of file Posix/UThreadC.h.
Reimplemented in UThread.
Definition at line 350 of file Posix/UThreadC.h.
Definition at line 359 of file Win32/UThreadC.h.
Definition at line 358 of file Posix/UThreadC.h.
static USemaphore& UThreadC< void >::S_Create | ( | ) | [inline, static, private] |
Definition at line 359 of file Posix/UThreadC.h.
Definition at line 243 of file Posix/UThreadC.h.
Definition at line 266 of file Win32/UThreadC.h.
static void UThreadC< void >::TestCancel | ( | ) | [inline, static, protected] |
Definition at line 240 of file Posix/UThreadC.h.
static void UThreadC< void >::TestCancel | ( | ) | [inline, static, protected] |
Definition at line 263 of file Win32/UThreadC.h.
virtual void UThreadC< void >::ThreadMain | ( | ) | [protected, pure virtual] |
Implemented in UThread.
virtual void UThreadC< void >::ThreadMain | ( | ) | [protected, pure virtual] |
Implemented in UThread.
static void* UThreadC< void >::ThreadMainHandler | ( | Instance * | Param | ) | [inline, static, private] |
Definition at line 361 of file Posix/UThreadC.h.
static THREAD_RET_T THREAD_CALL UThreadC< void >::ThreadMainHandler | ( | UThreadC< void > * | Param | ) | [inline, static, private] |
Definition at line 367 of file Win32/UThreadC.h.
static THREAD_RET_T THREAD_CALL UThreadC< void >::ThreadMainHandler_S | ( | Handler | Param | ) | [inline, static, private] |
Definition at line 374 of file Win32/UThreadC.h.