summaryrefslogtreecommitdiff
path: root/docs/tutorials
diff options
context:
space:
mode:
authoryamuna <yamuna@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-02-08 19:53:46 +0000
committeryamuna <yamuna@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-02-08 19:53:46 +0000
commitd5ea03afc38bde1f9718bf7399a6a5c36a67c5da (patch)
tree1b0dfcb9cb092633ba80cb266bf22397f116654a /docs/tutorials
parenta0e6e5048f02e36ec187b907066885b0abf83b51 (diff)
downloadATCD-d5ea03afc38bde1f9718bf7399a6a5c36a67c5da.tar.gz
*** empty log message ***
Diffstat (limited to 'docs/tutorials')
-rw-r--r--docs/tutorials/011/message_queue.cpp4
-rw-r--r--docs/tutorials/011/task.cpp4
2 files changed, 6 insertions, 2 deletions
diff --git a/docs/tutorials/011/message_queue.cpp b/docs/tutorials/011/message_queue.cpp
index 8ccc111481a..2ce18948534 100644
--- a/docs/tutorials/011/message_queue.cpp
+++ b/docs/tutorials/011/message_queue.cpp
@@ -6,9 +6,11 @@
#include "block.h"
#include "data.h"
-statuc int
+
+static int
run_test (int iterations,
int threads)
+
{
Task task (threads);
diff --git a/docs/tutorials/011/task.cpp b/docs/tutorials/011/task.cpp
index 78a7e49df39..1451aaa0b9a 100644
--- a/docs/tutorials/011/task.cpp
+++ b/docs/tutorials/011/task.cpp
@@ -29,6 +29,7 @@ Task::~Task (void)
int
Task::open (void *)
{
+
barrier_;
ACE_NEW_RETURN (barrier_,
@@ -36,7 +37,8 @@ Task::open (void *)
-1);
return this->activate (THR_NEW_LWP,
- threads);
+ this->n_threads_);
+
}
int