|
|
@ -33,19 +33,19 @@ public: |
|
|
* Add a thread to wait on this object |
|
|
* Add a thread to wait on this object |
|
|
* @param thread Pointer to thread to add |
|
|
* @param thread Pointer to thread to add |
|
|
*/ |
|
|
*/ |
|
|
virtual void AddWaitingThread(SharedPtr<Thread> thread); |
|
|
|
|
|
|
|
|
void AddWaitingThread(SharedPtr<Thread> thread); |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Removes a thread from waiting on this object (e.g. if it was resumed already) |
|
|
* Removes a thread from waiting on this object (e.g. if it was resumed already) |
|
|
* @param thread Pointer to thread to remove |
|
|
* @param thread Pointer to thread to remove |
|
|
*/ |
|
|
*/ |
|
|
virtual void RemoveWaitingThread(Thread* thread); |
|
|
|
|
|
|
|
|
void RemoveWaitingThread(Thread* thread); |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Wake up all threads waiting on this object that can be awoken, in priority order, |
|
|
* Wake up all threads waiting on this object that can be awoken, in priority order, |
|
|
* and set the synchronization result and output of the thread. |
|
|
* and set the synchronization result and output of the thread. |
|
|
*/ |
|
|
*/ |
|
|
virtual void WakeupAllWaitingThreads(); |
|
|
|
|
|
|
|
|
void WakeupAllWaitingThreads(); |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Wakes up a single thread waiting on this object. |
|
|
* Wakes up a single thread waiting on this object. |
|
|
|