diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-07-19 23:50:45 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-07-19 23:50:45 +0000 |
commit | 8c63f1dc0023ec65ece93465b52f1c6e7b9928e4 (patch) | |
tree | 06e5ceaaf92fc39b9dd96921155523f4ffb41e3a | |
parent | 1843b2e4ef8940cdcbd00e10967a80874ee03125 (diff) | |
download | ATCD-8c63f1dc0023ec65ece93465b52f1c6e7b9928e4.tar.gz |
ChangeLogTag: Thu Jul 19 18:48:09 2001 Irfan Pyarali <irfan@cs.wustl.edu>
-rw-r--r-- | TAO/ChangeLogs/ChangeLog-02a | 6 | ||||
-rw-r--r-- | TAO/tao/ORB.h | 34 |
2 files changed, 26 insertions, 14 deletions
diff --git a/TAO/ChangeLogs/ChangeLog-02a b/TAO/ChangeLogs/ChangeLog-02a index 20d6f1008c2..5f701bfaa6a 100644 --- a/TAO/ChangeLogs/ChangeLog-02a +++ b/TAO/ChangeLogs/ChangeLog-02a @@ -1,3 +1,9 @@ +Thu Jul 19 18:48:09 2001 Irfan Pyarali <irfan@cs.wustl.edu> + + * tao/ORB.h (run/work_pending/perform_work): Updated documentation + wrt timeouts. Thanks to Jean-Christophe Dubois <jcd@one.com> + for suggesting this. + Thu Jul 19 10:37:55 2001 Paul Calabrese <calabrese_p@ociweb.com> * docs/Options.html: diff --git a/TAO/tao/ORB.h b/TAO/tao/ORB.h index 44ab97aa7c0..3f1ca2e1cdb 100644 --- a/TAO/tao/ORB.h +++ b/TAO/tao/ORB.h @@ -370,19 +370,25 @@ public: /** * Instructs the ORB to initialize itself and run its event loop in - * the current thread, not returning until the ORB has shut down. - * If an error occurs during initialization or at run-time, a CORBA - * system exception will be thrown. - */ + * the current thread, not returning until the ORB has shut down or + * the time value specified through <tv> has expired. If an error + * occurs during initialization or at run-time, a CORBA system + * exception will be thrown. <tv> is reduced by the amount of time + * spent in this call. + **/ void run (ACE_Time_Value &tv, CORBA::Environment &ACE_TRY_ENV = TAO_default_environment ()); /** * Instructs the ORB to initialize itself and run its event loop in - * the current thread, not returning until the ORB has shut down. - * If an error occurs during initialization or at run-time, a CORBA - * system exception will be thrown. - */ + * the current thread, not returning until the ORB has shut down or + * the time value specified through <tv> has expired. If an error + * occurs during initialization or at run-time, a CORBA system + * exception will be thrown. <tv> is reduced by the amount of time + * spent in this call. If <tv> is 0, it means that the timeout is + * infinite. If <tv> is ACE_Time_Value::zero, it specifies to poll + * and does not block. + **/ void run (ACE_Time_Value *tv, CORBA::Environment &ACE_TRY_ENV = TAO_default_environment ()); @@ -392,18 +398,18 @@ public: TAO_default_environment ()); /// Returns an indication of whether the ORB needs to perform some work - /// but will look for work to pending for more than the specified time. + /// but will look for work pending for no more than the specified time. /// This is useful for implementing an event loop with an idle timeout. CORBA::Boolean work_pending (ACE_Time_Value &tv, CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()); /** - * This operation performs an implementation-defined unit of - * work. Note that the default behavior is not to block; this - * behavior can be modified by passing an appropriate - * <ACE_Time_Value>. - */ + * This operation performs an implementation-defined unit of work. + * Note that the default behavior is to block if the unit of work is + * not present; this behavior can be modified by passing an + * appropriate <ACE_Time_Value> as described in run(). + **/ void perform_work (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()); void perform_work (ACE_Time_Value &, |