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_manual_event.cpp | |
parent | 8460f65dd042d52eaaa80acfef7f288ab4ceb27a (diff) | |
download | ATCD-2d27f44666189e87ff27436b35a0dd002a0cdfd7.tar.gz |
Eon
Diffstat (limited to 'examples/Threads/test_manual_event.cpp')
-rw-r--r-- | examples/Threads/test_manual_event.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/Threads/test_manual_event.cpp b/examples/Threads/test_manual_event.cpp index fd22a697555..26d477fabc0 100644 --- a/examples/Threads/test_manual_event.cpp +++ b/examples/Threads/test_manual_event.cpp @@ -15,6 +15,7 @@ #include "ace/Synch.h" #include "ace/Thread_Manager.h" +#if defined (ACE_HAS_THREADS) static ACE_Atomic_Op <ACE_Thread_Mutex, u_long> amount_of_work = (u_long) 0; class Pseudo_Barrier @@ -97,3 +98,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 */ |