diff options
Diffstat (limited to 'ace/Synch.h')
-rw-r--r-- | ace/Synch.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ace/Synch.h b/ace/Synch.h index c8bc1c3931d..0415cce6cd4 100644 --- a/ace/Synch.h +++ b/ace/Synch.h @@ -183,6 +183,10 @@ public: // Block the thread until the semaphore count becomes // greater than 0, then decrement it. + int acquire (ACE_Time_Value &tv); + // Block the thread until <tv> times out or until the semaphore + // count becomes greater than 0 (at which point it is decremented). + int tryacquire (void); // Conditionally decrement the semaphore if count is greater than 0 // (i.e., won't block). |