diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2004-06-28 04:54:16 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2004-06-28 04:54:16 +0000 |
commit | 5619ff9d6dc4b1dd37a7d08e39939fb36cfea27f (patch) | |
tree | d76a35ccf0aa4d62da94ea1799c77c0594a8e6ed | |
parent | b7a8c4e989feb3a964939afe9b43f3200781a760 (diff) | |
download | ATCD-5619ff9d6dc4b1dd37a7d08e39939fb36cfea27f.tar.gz |
ChangeLogTag:Sun Jun 27 21:42:47 2004 Ossama Othman <ossama@dre.vanderbilt.edu>
-rw-r--r-- | examples/Misc/test_XtReactor1.cpp | 22 | ||||
-rw-r--r-- | examples/Misc/test_XtReactor2.cpp | 6 |
2 files changed, 14 insertions, 14 deletions
diff --git a/examples/Misc/test_XtReactor1.cpp b/examples/Misc/test_XtReactor1.cpp index c9a22a3ae1d..ebafcb1db79 100644 --- a/examples/Misc/test_XtReactor1.cpp +++ b/examples/Misc/test_XtReactor1.cpp @@ -29,7 +29,7 @@ public: int flags = ACE_OS::fcntl (ACE_STDOUT, F_GETFL); if (flags != -1 - && ACE_OS::fcntl (ACE_STDOUT, + && ACE_OS::fcntl (ACE_STDOUT, F_SETFL, flags | O_NONBLOCK) != -1) return; else @@ -45,18 +45,18 @@ public: if (ACE_OS::write (ACE_STDOUT, s, 1) == 1) { - ACE_DEBUG ((LM_DEBUG, + ACE_DEBUG ((LM_DEBUG, "wrote output '%d'\n", (int) *s)); - msg_.rd_ptr (1); + msg_.rd_ptr (1); } if (msg_.length () == 0) { - reactor_->remove_handler (this, + reactor_->remove_handler (this, ACE_Event_Handler::WRITE_MASK); - msg_.rd_ptr (msg_.base ()); - msg_.wr_ptr (msg_.base ()); + msg_.rd_ptr (msg_.base ()); + msg_.wr_ptr (msg_.base ()); } return 0; } @@ -69,8 +69,8 @@ public: if (msg_.wr_ptr () < msg_.end ()) { - *msg_.wr_ptr () = c; - msg_.wr_ptr (1); + *msg_.wr_ptr () = c; + msg_.wr_ptr (1); } else ACE_DEBUG ((LM_DEBUG, @@ -127,7 +127,7 @@ ACE_TMAIN (int argc, ACE_TCHAR**argv) "buttontest", NULL, 0, - &argc, + &argc, argv, NULL, NULL); @@ -157,8 +157,8 @@ ACE_TMAIN (int argc, ACE_TCHAR**argv) // Print a message every 10 seconds. if (reactor.schedule_timer (stdin_, 0, - ACE_Time_Value (10), - ACE_Time_Value (10)) == -1) + ACE_Time_Value (10), + ACE_Time_Value (10)) == -1) ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "schedule_timer"), diff --git a/examples/Misc/test_XtReactor2.cpp b/examples/Misc/test_XtReactor2.cpp index 586ae8bd7c6..601335f7b34 100644 --- a/examples/Misc/test_XtReactor2.cpp +++ b/examples/Misc/test_XtReactor2.cpp @@ -57,7 +57,7 @@ ACE_TMAIN (int argc, ACE_TCHAR**argv) "buttontest", NULL, 0, - &argc, + &argc, argv, NULL, NULL); @@ -87,8 +87,8 @@ ACE_TMAIN (int argc, ACE_TCHAR**argv) // Print a message every 10 seconds if (reactor.schedule_timer (stdin_, 0, - ACE_Time_Value (10), - ACE_Time_Value (10)) == -1) + ACE_Time_Value (10), + ACE_Time_Value (10)) == -1) ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "schedule_timer"), -1); |