#include <WaitSet.h>
Inheritance diagram for Lamp::WaitSet:
Public Member Functions | |
WaitSet () | |
コンストラクタ | |
WaitSet (LockObject *lockObject, bool deleteLockObject) | |
コンストラクタ | |
virtual | ~WaitSet () |
デストラクタ | |
virtual void | wait (const Thread *thread) |
待機 | |
virtual void | wait () |
待機 カレントスレッドを待機させます。呼び出すにはWaitSetに対するロックが必要。 | |
virtual void | notify () |
待機解除 | |
virtual void | notifyAll () |
待機全解除 | |
virtual void | lock () |
ロック | |
virtual void | unlock () |
アンロック | |
virtual bool | isLockedByCurrentThread () const |
カレントスレッドによってロックされているか |
Definition at line 39 of file WaitSet.h.
|
コンストラクタ クリティカルセクションによる同期制御を行う Definition at line 34 of file WaitSet.cpp. |
|
コンストラクタ
Definition at line 39 of file WaitSet.cpp. |
|
カレントスレッドによってロックされているか
Implements Lamp::LockObject. Definition at line 105 of file WaitSet.h. References Lamp::LockObject::isLockedByCurrentThread(). Referenced by notify(), notifyAll(), and wait(). |
|
待機解除 一つのスレッドの待機を解除します。呼び出すにはWaitSetに対するロックが必要。 Definition at line 89 of file WaitSet.cpp. References ErrorOut, Lamp::Deque< HANDLE >::getCount(), isLockedByCurrentThread(), and Lamp::Deque< HANDLE >::popFront(). |
|
待機全解除 全てのスレッドの待機を解除します。呼び出すにはWaitSetに対するロックが必要。 Definition at line 102 of file WaitSet.cpp. References Lamp::Deque< HANDLE >::clear(), ErrorOut, Lamp::Deque< HANDLE >::get(), Lamp::Deque< HANDLE >::getCount(), and isLockedByCurrentThread(). |
|
待機
Definition at line 51 of file WaitSet.cpp. References ErrorOut, Lamp::Thread::getThreadHandle(), isLockedByCurrentThread(), lock(), Lamp::Deque< HANDLE >::pushBack(), and unlock(). |