#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 (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 |
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 THREAD_RET_T THREAD_CALL | ThreadMainHandler (UThreadC< void > *Param) |
static void * | ThreadMainHandler (Instance *Param) |
static THREAD_RET_T THREAD_CALL | ThreadMainHandler_S (Handler Param) |
Definition at line 226 of file Posix/UThreadC.h.
typedef THREAD_HANDLE UThreadC< void >::Handle |
Definition at line 229 of file Posix/UThreadC.h.
typedef THREAD_HANDLE UThreadC< void >::Handle |
Definition at line 247 of file Win32/UThreadC.h.
Definition at line 233 of file Posix/UThreadC.h.
Definition at line 251 of file Win32/UThreadC.h.
Definition at line 235 of file Posix/UThreadC.h.
Definition at line 238 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 255 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 288 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 320 of file Posix/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 323 of file Win32/UThreadC.h.
Reimplemented in UThread.
Definition at line 362 of file Posix/UThreadC.h.
Definition at line 364 of file Win32/UThreadC.h.
Definition at line 242 of file Posix/UThreadC.h.
Definition at line 260 of file Win32/UThreadC.h.
Definition at line 347 of file Win32/UThreadC.h.
Reimplemented in UThread.
Definition at line 354 of file Posix/UThreadC.h.
Reimplemented in UThread.
Definition at line 358 of file Posix/UThreadC.h.
Definition at line 361 of file Win32/UThreadC.h.
Definition at line 367 of file Posix/UThreadC.h.
static USemaphore& UThreadC< void >::S_Create | ( | ) | [inline, static, private] |
Definition at line 368 of file Posix/UThreadC.h.
Definition at line 250 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 246 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 THREAD_RET_T THREAD_CALL UThreadC< void >::ThreadMainHandler | ( | UThreadC< void > * | Param | ) | [inline, static, private] |
Definition at line 369 of file Win32/UThreadC.h.
static void* UThreadC< void >::ThreadMainHandler | ( | Instance * | Param | ) | [inline, static, private] |
Definition at line 370 of file Posix/UThreadC.h.
static THREAD_RET_T THREAD_CALL UThreadC< void >::ThreadMainHandler_S | ( | Handler | Param | ) | [inline, static, private] |
Definition at line 376 of file Win32/UThreadC.h.