summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1996-12-28 19:31:56 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1996-12-28 19:31:56 +0000
commit5e39b74c3bf1739e08286d6bfd082e387333b2de (patch)
tree6bec337fb3d2ce44aff3a4d61d87ae6f4a352146 /examples
parent907accd3ebb62e786a06a83c419b22380b209385 (diff)
downloadATCD-5e39b74c3bf1739e08286d6bfd082e387333b2de.tar.gz
foo
Diffstat (limited to 'examples')
-rw-r--r--examples/Threads/task_two.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/Threads/task_two.cpp b/examples/Threads/task_two.cpp
index 454b3a62adf..169107488f2 100644
--- a/examples/Threads/task_two.cpp
+++ b/examples/Threads/task_two.cpp
@@ -13,7 +13,7 @@
typedef ACE_Atomic_Op<ACE_Thread_Mutex, int> ATOMIC_INT;
-static u_long zero = 0;
+static int zero = 0;
static ATOMIC_INT task_count (zero);
static ATOMIC_INT max_count (zero);
static ATOMIC_INT wait_count (zero);
@@ -46,7 +46,7 @@ Task_Test::open (void *)
task_count++;
ACE_DEBUG ((LM_DEBUG, "(%t) creating Task_Test, task count = %d\n",
- (u_long) task_count));
+ (int) task_count));
return this->activate (THR_BOUND);
}
@@ -58,7 +58,7 @@ Task_Test::close (u_long)
task_count--;
ACE_DEBUG ((LM_DEBUG, "(%t) destroying Task_Test, task count = %d\n",
- (u_long) task_count));
+ (int) task_count));
wait_count--;
// delete this;
return 0;
@@ -93,7 +93,7 @@ main (int argc, char *argv[])
for (int i = 1; i <= n_iterations; i++)
{
ACE_DEBUG ((LM_DEBUG, "(%t) iteration = %d, max_count %d\n",
- i, (u_long) max_count));
+ i, (int) max_count));
max_count = 0;
ACE_DEBUG ((LM_DEBUG, "(%t) starting %d task%s\n",
@@ -118,7 +118,7 @@ main (int argc, char *argv[])
ACE_Thread::yield ();
ACE_DEBUG ((LM_DEBUG, "(%t) iteration %d finished, max_count %d, wait_count %d, waiting for tasks to exit\n",
- i, (u_long) max_count, (u_long) wait_count));
+ i, (int) max_count, (int) wait_count));
// Wait for all the tasks to exit.
ACE_Service_Config::thr_mgr ()->wait ();