diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 2002-06-05 18:38:40 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 2002-06-05 18:38:40 +0000 |
commit | 62a810b224522c812e6454e380e4242d151a8f67 (patch) | |
tree | b7942f1d84a61f04c459e2fa67cdb5050e47b408 /ace/Timer_Queue_T.h | |
parent | a2e843ac1ffa9eea3027d71e17e1ebfdce32d6d9 (diff) | |
download | ATCD-62a810b224522c812e6454e380e4242d151a8f67.tar.gz |
ChangeLogTag:Wed Jun 5 13:54:03 UTC 2002 Don Hinton <dhinton@ieee.org>
Diffstat (limited to 'ace/Timer_Queue_T.h')
-rw-r--r-- | ace/Timer_Queue_T.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ace/Timer_Queue_T.h b/ace/Timer_Queue_T.h index 7a9cbc186a8..1cae4f56e8d 100644 --- a/ace/Timer_Queue_T.h +++ b/ace/Timer_Queue_T.h @@ -346,13 +346,18 @@ public: /// Determine the next event to timeout. Returns <max> if there are /// no pending timers or if all pending timers are longer than max. + /// This method acquires a lock internally since it modifies internal state. virtual ACE_Time_Value *calculate_timeout (ACE_Time_Value *max); /** * Determine the next event to timeout. Returns <max> if there are * no pending timers or if all pending timers are longer than max. * <the_timeout> should be a pointer to storage for the timeout value, - * and this value is also returned. + * and this value is also returned. This method does not acquire a + * lock internally since it doesn't modify internal state. If you + * need to call this method when the queue is being modified + * concurrently, however, you should make sure to acquire the <mutex()> + * externally before making the call. */ virtual ACE_Time_Value *calculate_timeout (ACE_Time_Value *max, ACE_Time_Value *the_timeout); |