diff options
| author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1996-11-30 00:33:43 +0000 |
|---|---|---|
| committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1996-11-30 00:33:43 +0000 |
| commit | 2d27f44666189e87ff27436b35a0dd002a0cdfd7 (patch) | |
| tree | dd496dde3c016a1db5d3882e1dc40c9af7e9aaf8 /examples/Threads/test_tss2.cpp | |
| parent | 8460f65dd042d52eaaa80acfef7f288ab4ceb27a (diff) | |
| download | ATCD-2d27f44666189e87ff27436b35a0dd002a0cdfd7.tar.gz | |
Eon
Diffstat (limited to 'examples/Threads/test_tss2.cpp')
| -rw-r--r-- | examples/Threads/test_tss2.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/Threads/test_tss2.cpp b/examples/Threads/test_tss2.cpp index 2ce269e71f7..24a8d958e91 100644 --- a/examples/Threads/test_tss2.cpp +++ b/examples/Threads/test_tss2.cpp @@ -65,7 +65,7 @@ public: int open (void *arg); - void *svc (void *arg); + static void *svc (void *arg); static int wait_count_; static int max_count_; @@ -104,8 +104,8 @@ Test_Task::~Test_Task (void) wait_count_--; } -int -Test_Task::svc (void *) +void * +Test_Task::svc (void *arg) { ACE_TSS<TSS_Obj> tss (new TSS_Obj); @@ -147,7 +147,8 @@ Test_Task::svc (void *) int Test_Task::open (void *arg) { - ACE_Thread::spawn (Task_Task::svc, arg); + if (ACE_Thread::spawn (Test_Task::svc, arg) == -1) + ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "ACE_Thread::spawn"), 0); return 0; } |
