summaryrefslogtreecommitdiff
path: root/examples/Threads/test_tss2.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1996-11-25 08:21:01 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1996-11-25 08:21:01 +0000
commit16ae5e4bba62c9c43a6f9162a15e339854cd285f (patch)
tree7376043e9e545101ba507bf08685bf726e03e7d2 /examples/Threads/test_tss2.cpp
parentae3742d1d6afe6974dfb95acab3b7b99776f30a4 (diff)
downloadATCD-16ae5e4bba62c9c43a6f9162a15e339854cd285f.tar.gz
Later
Diffstat (limited to 'examples/Threads/test_tss2.cpp')
-rw-r--r--examples/Threads/test_tss2.cpp26
1 files changed, 12 insertions, 14 deletions
diff --git a/examples/Threads/test_tss2.cpp b/examples/Threads/test_tss2.cpp
index 0cdbc7fe029..2ce269e71f7 100644
--- a/examples/Threads/test_tss2.cpp
+++ b/examples/Threads/test_tss2.cpp
@@ -33,7 +33,7 @@ public:
~TSS_Obj (void);
private:
- static int count_;
+ static int count_;
static ACE_Thread_Mutex lock_;
};
@@ -65,8 +65,7 @@ public:
int open (void *arg);
- static void* svc (void *arg);
-
+ void *svc (void *arg);
static int wait_count_;
static int max_count_;
@@ -105,17 +104,8 @@ Test_Task::~Test_Task (void)
wait_count_--;
}
-int Test_Task::open (void *arg)
-{
-
- ACE_Thread::spawn (Test_Task::svc, arg);
-
- return 0;
-}
-
-
-void *
-Test_Task::svc (void *arg)
+int
+Test_Task::svc (void *)
{
ACE_TSS<TSS_Obj> tss (new TSS_Obj);
@@ -155,6 +145,14 @@ Test_Task::svc (void *arg)
}
int
+Test_Task::open (void *arg)
+{
+ ACE_Thread::spawn (Task_Task::svc, arg);
+
+ return 0;
+}
+
+int
main (int argc, char **argv)
{
if (argc != 2)