diff options
Diffstat (limited to 'src/thread/thread.h')
-rw-r--r-- | src/thread/thread.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/thread/thread.h b/src/thread/thread.h index 22873bee5..98c48d15d 100644 --- a/src/thread/thread.h +++ b/src/thread/thread.h @@ -68,6 +68,19 @@ public: * End of the critical section */ virtual void EndCritical() = 0; + + /** + * Wait for a signal to be send. + * @pre You must be in the critical section. + * @note While waiting the critical section is left. + * @post You will be in the critical section. + */ + virtual void WaitForSignal() = 0; + + /** + * Send a signal and wake the 'thread' that was waiting for it. + */ + virtual void SendSignal() = 0; }; #endif /* THREAD_H */ |