summaryrefslogtreecommitdiff
path: root/examples/Threads
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-10-15 14:31:47 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-10-15 14:31:47 +0000
commit148cb87564c106cecaafc6d329d9cecf7cba5fa7 (patch)
treee95285436aad1fc9bee48d17b02b494caa1474c6 /examples/Threads
parent4a20c06d2c02a7e1a93412df8e99094c904a62a4 (diff)
downloadATCD-148cb87564c106cecaafc6d329d9cecf7cba5fa7.tar.gz
removed unused static lock
Diffstat (limited to 'examples/Threads')
-rw-r--r--examples/Threads/tss1.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/examples/Threads/tss1.cpp b/examples/Threads/tss1.cpp
index 3c566324fad..7aeadc7fee1 100644
--- a/examples/Threads/tss1.cpp
+++ b/examples/Threads/tss1.cpp
@@ -76,15 +76,9 @@ int Errno::flags_;
ACE_TSS<Errno> TSS_Error;
#if defined (ACE_HAS_THREADS)
-// Serializes output via cout.
-static ACE_Thread_Mutex lock;
-
-typedef ACE_TSS_Guard<ACE_Thread_Mutex> GUARD;
+ typedef ACE_TSS_Guard<ACE_Thread_Mutex> GUARD;
#else
-// Serializes output via cout.
-static ACE_Null_Mutex lock;
-
-typedef ACE_Guard<ACE_Null_Mutex> GUARD;
+ typedef ACE_Guard<ACE_Null_Mutex> GUARD;
#endif /* ACE_HAS_THREADS */
// Keeps track of whether Tester::close () has started.
@@ -182,7 +176,7 @@ int
main (int, char *[])
{
ACE_ERROR_RETURN ((LM_ERROR,
- "ACE doesn't support support threads on this platform (yet)\n"),
- -1);
+ "ACE doesn't support support threads on this platform (yet)\n"),
+ -1);
}
#endif /* ACE_HAS_THREADS */