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 | 8ca31fd725b7bd02f2038a5b3a03c3da64b6b48c (patch) | |
tree | dd496dde3c016a1db5d3882e1dc40c9af7e9aaf8 /examples/Threads/test_auto_event.cpp | |
parent | 42f04951935318cb83949862c4abd11a8386cc91 (diff) | |
download | ATCD-8ca31fd725b7bd02f2038a5b3a03c3da64b6b48c.tar.gz |
Eon
Diffstat (limited to 'examples/Threads/test_auto_event.cpp')
-rw-r--r-- | examples/Threads/test_auto_event.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/examples/Threads/test_auto_event.cpp b/examples/Threads/test_auto_event.cpp index 3b793d22bf5..4f83d50db71 100644 --- a/examples/Threads/test_auto_event.cpp +++ b/examples/Threads/test_auto_event.cpp @@ -1,6 +1,6 @@ -// This test shows the use of an ACE_Auto_Event as a signaling // $Id$ +// This test shows the use of an ACE_Auto_Event as a signaling // mechanism. Two threads are created (one a reader, the other a // writer). The reader waits till the writer has completed // calculations. Upon waking up the reader prints the data calculated @@ -12,6 +12,7 @@ #include "ace/Singleton.h" #include "ace/Thread_Manager.h" +#if defined (ACE_HAS_THREADS) // Shared event between reader and writer. The ACE_Thread_Mutex is // necessary to make sure that only one ACE_Auto_Event is created. // The default constructor for ACE_Auto_Event sets it initially into @@ -102,3 +103,11 @@ main (int argc, char **argv) return 0; } +#else +int +main (int, char *[]) +{ + ACE_ERROR ((LM_ERROR, "threads not supported on this platform\n")); + return 0; +} +#endif /* ACE_HAS_THREADS */ |