diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2001-12-31 14:25:55 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2001-12-31 14:25:55 +0000 |
commit | 6eae1ecf7175c151b9132507edefbbf744e6a1ea (patch) | |
tree | 294c4d594eed2ec4b010638ce7a81403531c8c85 /docs | |
parent | eb614cc38899a68611d23f7a7aa525cf83b88a1d (diff) | |
download | ATCD-6eae1ecf7175c151b9132507edefbbf744e6a1ea.tar.gz |
ChangeLogTag: Mon Dec 31 15:08:08 2001 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/tutorials/010/message_queue.cpp | 4 | ||||
-rw-r--r-- | docs/tutorials/011/message_queue.cpp | 4 | ||||
-rw-r--r-- | docs/tutorials/012/message_queue.cpp | 4 | ||||
-rw-r--r-- | docs/tutorials/013/message_queue.cpp | 6 |
4 files changed, 9 insertions, 9 deletions
diff --git a/docs/tutorials/010/message_queue.cpp b/docs/tutorials/010/message_queue.cpp index a67f72d01e2..f16f2606da7 100644 --- a/docs/tutorials/010/message_queue.cpp +++ b/docs/tutorials/010/message_queue.cpp @@ -76,8 +76,8 @@ main (int argc, char *argv[]) { /* Set the number of iterations through our putq() loop and the number of threads to use in our Task<> derivative. */ - int iterations = argc > 1 ? atoi (argv[1]) : 9; - int threads = argc > 2 ? atoi (argv[2]) : 2; + int iterations = argc > 1 ? ACE_OS::atoi (argv[1]) : 9; + int threads = argc > 2 ? ACE_OS::atoi (argv[2]) : 2; run_test (iterations, threads); diff --git a/docs/tutorials/011/message_queue.cpp b/docs/tutorials/011/message_queue.cpp index a0813db2e69..168a9793f9f 100644 --- a/docs/tutorials/011/message_queue.cpp +++ b/docs/tutorials/011/message_queue.cpp @@ -71,8 +71,8 @@ run_test (int iterations, int main (int argc, char *argv[]) { - int iterations = argc > 1 ? atoi (argv[1]) : 4; - int threads = argc > 2 ? atoi (argv[2]) : 2; + int iterations = argc > 1 ? ACE_OS::atoi (argv[1]) : 4; + int threads = argc > 2 ? ACE_OS::atoi (argv[2]) : 2; run_test (iterations, threads); diff --git a/docs/tutorials/012/message_queue.cpp b/docs/tutorials/012/message_queue.cpp index c5db97bb00b..8410d92ad5f 100644 --- a/docs/tutorials/012/message_queue.cpp +++ b/docs/tutorials/012/message_queue.cpp @@ -81,8 +81,8 @@ int main (int argc, char *argv[]) Give the user a chance to override the default number of iterations and pool threads. */ - int iterations = argc > 1 ? atoi (argv[1]) : 4; - int threads = argc > 2 ? atoi (argv[2]) : 2; + int iterations = argc > 1 ? ACE_OS::atoi (argv[1]) : 4; + int threads = argc > 2 ? ACE_OS::atoi (argv[2]) : 2; /* Use the function above to do the actual test. As I said, this diff --git a/docs/tutorials/013/message_queue.cpp b/docs/tutorials/013/message_queue.cpp index 6264381810a..17d1afd3d9d 100644 --- a/docs/tutorials/013/message_queue.cpp +++ b/docs/tutorials/013/message_queue.cpp @@ -63,11 +63,11 @@ int run_test (int iterations, int threads, int subtasks) int main (int argc, char *argv[]) { // Number of Work objects to put into the Task pool - int iterations = argc > 1 ? atoi (argv[1]) : 4; + int iterations = argc > 1 ? ACE_OS::atoi (argv[1]) : 4; // Number of threads for each Task - int threads = argc > 2 ? atoi (argv[2]) : 2; + int threads = argc > 2 ? ACE_OS::atoi (argv[2]) : 2; // Number of tasks to chain after the primary task - int subtasks = argc > 3 ? atoi (argv[3]) : 1; + int subtasks = argc > 3 ? ACE_OS::atoi (argv[3]) : 1; (void) run_test (iterations, threads, subtasks); |