diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-06-19 02:15:29 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-06-19 02:15:29 +0000 |
commit | ac9c47fc9ed58f49c6dde90de6459436945bac8e (patch) | |
tree | e2711a701d5292c5693700357038918d8afb9635 /examples/Threads | |
parent | 0ad6eb32f30c6ea0400e6a22ae5b158e99d85f5a (diff) | |
download | ATCD-ac9c47fc9ed58f49c6dde90de6459436945bac8e.tar.gz |
renamed global stack_size to default_stack_size, to avoid shadowing by
stack_size in main ().
Diffstat (limited to 'examples/Threads')
-rw-r--r-- | examples/Threads/task_five.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/Threads/task_five.cpp b/examples/Threads/task_five.cpp index 4417d295c84..153305294c4 100644 --- a/examples/Threads/task_five.cpp +++ b/examples/Threads/task_five.cpp @@ -10,7 +10,7 @@ #include "ace/Task.h" static const int DEFAULT_TASKS = 1000; -static size_t stack_size = // Default stack size +static size_t default_stack_size = // Default stack size #if defined (ACE_WIN32) 0; #else @@ -49,7 +49,7 @@ Test_Task::open (void *) 0, 0, 0, - &stack_size); + &default_stack_size); } int @@ -134,7 +134,7 @@ void work (ACE_Thread_Manager *thr_mgr, int n_tasks, size_t stack_size) int main (int argc, char *argv[]) { - size_t stack_size = argc > 1 ? ACE_OS::atoi (argv[1]) : stack_size; + size_t stack_size = argc > 1 ? ACE_OS::atoi (argv[1]) : default_stack_size; const int n_tasks = argc > 2 ? ACE_OS::atoi (argv[2]) : DEFAULT_TASKS; ACE_Thread_Manager *thr_mgr = ACE_Service_Config::thr_mgr (); |