diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-10-22 12:26:26 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-10-22 12:26:26 +0000 |
commit | cbddb31e43fc3ac5651e83e26f907725f104ea79 (patch) | |
tree | 0c240e05ae695dd9b2a2f6348b39b560434111d6 /examples/Service_Configurator | |
parent | a3a343a08ef664e228a1e10a53f2f042724febe4 (diff) | |
download | ATCD-cbddb31e43fc3ac5651e83e26f907725f104ea79.tar.gz |
untabified
Diffstat (limited to 'examples/Service_Configurator')
-rw-r--r-- | examples/Service_Configurator/IPC-tests/server/Handle_Timeout.i | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/examples/Service_Configurator/IPC-tests/server/Handle_Timeout.i b/examples/Service_Configurator/IPC-tests/server/Handle_Timeout.i index 16865853d70..436a0421fd6 100644 --- a/examples/Service_Configurator/IPC-tests/server/Handle_Timeout.i +++ b/examples/Service_Configurator/IPC-tests/server/Handle_Timeout.i @@ -29,28 +29,28 @@ Handle_Timeout::init (int argc, char *argv[]) ACE_Time_Value delta (10); ACE_Time_Value interval (1); ACE_Get_Opt get_opt (argc, argv, "a:d:i:", 0); - int arg = 0; + int arg = 0; for (int c; (c = get_opt ()) != -1; ) switch (c) { case 'd': - delta.sec (ACE_OS::atoi (get_opt.optarg)); - break; + delta.sec (ACE_OS::atoi (get_opt.optarg)); + break; case 'i': - interval.sec (ACE_OS::atoi (get_opt.optarg)); - break; + interval.sec (ACE_OS::atoi (get_opt.optarg)); + break; case 'a': - arg = atoi (get_opt.optarg); - break; + arg = atoi (get_opt.optarg); + break; default: - break; + break; } if (ACE_Reactor::instance ()->schedule_timer (this, - (void *) arg, - delta, - interval) == -1) + (void *) arg, + delta, + interval) == -1) return -1; else return 0; @@ -70,19 +70,19 @@ Handle_Timeout::get_handle (void) const ACE_INLINE int Handle_Timeout::handle_timeout (const ACE_Time_Value &tv, - const void *arg) + const void *arg) { if (this->count++ >= 10) return -1; // Automatically cancel periodic timer... #if defined (ACE_HAS_64BIT_LONGS) ACE_DEBUG ((LM_INFO, - "time for this(%u) expired at (%d, %d) with arg = %d\n", - this, tv.sec (), tv.usec (), long (arg))); + "time for this(%u) expired at (%d, %d) with arg = %d\n", + this, tv.sec (), tv.usec (), long (arg))); #else /* ! ACE_HAS_64BIT_LONGS */ ACE_DEBUG ((LM_INFO, - "time for this(%u) expired at (%d, %d) with arg = %d\n", - this, tv.sec (), tv.usec (), int (arg))); + "time for this(%u) expired at (%d, %d) with arg = %d\n", + this, tv.sec (), tv.usec (), int (arg))); #endif /* ! ACE_HAS_64BIT_LONGS */ return 0; } |