#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 () const |
| bool | isRunning () const |
| bool | stopRequested () const |
| std::thread::id | getThreadId () const |
| bool | getReturnValue (void **ret) const |
| 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 |
References Thread::Thread().
Referenced by MeshUpdateWorkerThread::MeshUpdateWorkerThread(), and MinimapUpdateThread::MinimapUpdateThread().
|
default |
|
inline |
References m_update_sem.
Referenced by MinimapUpdateThread::enqueueBlock().
|
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, and Thread::stopRequested().
|
inline |
|
private |
Referenced by deferUpdate(), run(), and stop().