#include <thread.h>
Public Member Functions | |
UpdateThread (const std::string &name) | |
~UpdateThread ()=default | |
void | deferUpdate () |
void | stop () |
void * | run () |
Public Member Functions inherited from Thread | |
Thread (const std::string &name="") | |
virtual | ~Thread () |
bool | start () |
bool | stop () |
bool | wait () |
bool | isCurrentThread () |
bool | isRunning () |
bool | stopRequested () |
std::thread::id | getThreadId () |
bool | getReturnValue (void **ret) |
bool | bindToProcessor (unsigned int proc_number) |
bool | setPriority (int prio) |
Protected Member Functions | |
virtual void | doUpdate ()=0 |
Private Attributes | |
Semaphore | m_update_sem |
Additional Inherited Members | |
Static Public Member Functions inherited from Thread | |
static Thread * | getCurrentThread () |
static void | setName (const std::string &name) |
static unsigned int | getNumberOfProcessors () |
Protected Attributes inherited from Thread | |
std::string | m_name |
|
inline |
|
default |
|
inline |
References m_update_sem, and Semaphore::post().
Referenced by MinimapUpdateThread::enqueueBlock(), Minimap::setMinimapShape(), Minimap::setModeIndex(), Minimap::setPos(), and Minimap::toggleMinimapShape().
|
protectedpure virtual |
Implemented in MeshUpdateWorkerThread, and MinimapUpdateThread.
Referenced by run().
|
inlinevirtual |
Implements Thread.
References BEGIN_DEBUG_EXCEPTION_HANDLER, doUpdate(), END_DEBUG_EXCEPTION_HANDLER, m_update_sem, Thread::stopRequested(), and Semaphore::wait().
|
inline |
References m_update_sem, Semaphore::post(), and Thread::stop().
Referenced by Minimap::~Minimap().
|
private |
Referenced by deferUpdate(), run(), and stop().