#include <thread.h>
Inheritance diagram for UpdateThread:
Collaboration diagram for UpdateThread: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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protectedpure virtual |
Implemented in MeshUpdateWorkerThread, and MinimapUpdateThread.
Referenced by run().
Here is the caller graph for this function:
|
inlinevirtual |
Implements Thread.
References BEGIN_DEBUG_EXCEPTION_HANDLER, doUpdate(), END_DEBUG_EXCEPTION_HANDLER, m_update_sem, Thread::stopRequested(), and Semaphore::wait().
Here is the call graph for this function:
|
inline |
References m_update_sem, Semaphore::post(), and Thread::stop().
Referenced by Minimap::~Minimap().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Referenced by deferUpdate(), run(), and stop().