|
| | UObjDeletionThread (T *obj, int id=0) |
| |
| virtual | ~UObjDeletionThread () |
| |
| void | startDeletion (int waitMs=0) |
| |
| int | id () const |
| |
| void | setObj (T *obj) |
| |
| | UThread (Priority priority=kPNormal) |
| |
| virtual | ~UThread () |
| |
| void | start () |
| |
| void | kill () |
| |
| void | join (bool killFirst=false) |
| |
| void | setPriority (Priority priority) |
| |
| void | setAffinity (int cpu=0) |
| |
| bool | isCreating () const |
| |
| bool | isRunning () const |
| |
| bool | isIdle () const |
| |
| bool | isKilled () const |
| |
| Handle | getThreadHandle () const |
| |
| unsigned long | getThreadId () 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 (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 |
| |
|
| enum | Priority {
kPLow
, kPBelowNormal
, kPNormal
, kPAboveNormal
,
kPRealTime
} |
| |
| typedef THREAD_HANDLE | Handle |
| |
| typedef void(* | Handler) () |
| |
| typedef THREAD_HANDLE | Handle |
| |
| typedef void(* | Handler) () |
| |
| static unsigned long | currentThreadId () |
| |
| 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 | Join (Handle H) |
| |
| static int | Kill (Handle H) |
| |
| static int | Detach (Handle H) |
| |
| 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 | Join (const Handle &H) |
| |
| static int | Kill (const Handle &H) |
| |
| static int | Detach (const Handle &H) |
| |
| static void | Exit () |
| |
| static void | TestCancel () |
| |
| static Handle | Self () |
| |
| static void | Exit () |
| |
| static void | TestCancel () |
| |
| static int | Self () |
| |
template<class T>
class UObjDeletionThread< T >
This class can be used to delete a dynamically created object in another thread. Give the dynamic reference to object to it and it will notify with a UObjDeletedEvent when the object is deleted. The deletion can be delayed on startDeletion(), the thread will wait the time given before deleting the object.
Definition at line 48 of file UObjDeletionThread.h.