|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <Threading.h>
Public Member Functions | |
| void | destroy () |
| void | resume () |
| void | setPriority (Priority type) |
| bool | start () |
| void | suspend () |
| Thread () | |
| Thread (Runnable *instance) | |
| bool | wait () |
| ~Thread () | |
Static Public Member Functions | |
| static Thread * | current () |
| static std::thread::native_handle_type | currentHandle () |
| static uint64_t | currentId () |
| static void | Sleep (unsigned long msecs) |
Private Member Functions | |
| Thread & | operator= (const Thread &) |
| Thread (const Thread &) | |
Static Private Member Functions | |
| static void | ThreadTask (Runnable *param) |
Private Attributes | |
| uint64_t | m_iThreadId |
| bool | m_started |
| Runnable * | m_task |
| std::thread | m_thread |
Definition at line 57 of file Threading.h.
| Thread::Thread | ( | ) |
Definition at line 30 of file Threading.cpp.
References m_iThreadId, m_started, and m_task.
Referenced by current(), operator=(), and Thread().
|
explicit |
Definition at line 32 of file Threading.cpp.
References ASSERT, m_iThreadId, m_started, m_task, and start().
| Thread::~Thread | ( | ) |
Definition at line 42 of file Threading.cpp.
|
private |
References Thread().
|
static |
Definition at line 124 of file Threading.cpp.
References currentId(), m_iThreadId, m_started, and Thread().
|
static |
Definition at line 119 of file Threading.cpp.
|
static |
Definition at line 114 of file Threading.cpp.
Referenced by current(), MySQL::Thread_End(), and MySQL::Thread_Init().
| void Thread::destroy | ( | ) |
Definition at line 88 of file Threading.cpp.
References m_iThreadId, m_started, and m_thread.
| void Thread::resume | ( | ) |
Definition at line 101 of file Threading.cpp.
| void Thread::setPriority | ( | Priority | type | ) |
Definition at line 136 of file Threading.cpp.
|
static |
Definition at line 141 of file Threading.cpp.
References Skyfire::SleepForMilliseconds().
| bool Thread::start | ( | ) |
Definition at line 52 of file Threading.cpp.
References m_iThreadId, m_started, m_task, m_thread, and ThreadTask().
Referenced by Thread().
| void Thread::suspend | ( | ) |
Definition at line 97 of file Threading.cpp.
|
staticprivate |
Definition at line 105 of file Threading.cpp.
References Skyfire::Runnable::decReference(), and Skyfire::Runnable::run().
Referenced by start().
| bool Thread::wait | ( | ) |
Definition at line 75 of file Threading.cpp.
References m_iThreadId, m_started, and m_thread.
|
private |
|
private |
|
private |
|
private |