diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-01-06 22:40:39 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-01-06 22:40:39 +0000 |
commit | ba2488448b54975d2d00a398daab619acc8d5361 (patch) | |
tree | 45885e95294ca80d930ed4f66b7e96e130d62403 /examples | |
parent | 70d108545611dbb86049d0109ef4a7ab1ef6289e (diff) | |
download | ATCD-ba2488448b54975d2d00a398daab619acc8d5361.tar.gz |
My Dog
Diffstat (limited to 'examples')
-rw-r--r-- | examples/Reactor/Misc/notification.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/Reactor/Misc/notification.cpp b/examples/Reactor/Misc/notification.cpp index bf5fabb86b9..3630a9651b7 100644 --- a/examples/Reactor/Misc/notification.cpp +++ b/examples/Reactor/Misc/notification.cpp @@ -1,4 +1,3 @@ - // $Id$ #include "ace/Service_Config.h" @@ -153,7 +152,11 @@ Thread_Handler::svc (void) // Block for delay_.secs () / 2, then notify the Reactor. ACE_OS::sleep (Thread_Handler::delay_.sec () / 2); - this->notify (); + // Only wait up to 10 milliseconds to notify the Reactor. + ACE_Time_Value timeout (0, 10 * 1000); + + if (this->notify (0, ACE_Event_Handler::EXCEPT_MASK, &timeout) == -1) + ACE_DEBUG ((LM_DEBUG, "(%t) %p\n", "notify()")); } return 0; } |