diff options
Diffstat (limited to 'test/sem_test.cpp')
-rw-r--r-- | test/sem_test.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/sem_test.cpp b/test/sem_test.cpp index 03c3748..8a0cb45 100644 --- a/test/sem_test.cpp +++ b/test/sem_test.cpp @@ -64,5 +64,11 @@ main() waiter.join(); cout << "[Main] Exiting" << endl; + cout << "[Main] Waiting for 1/4 s..." << std::endl; + if (sem.timed_wait(250)) { + cerr << "error: Spurious wakeup" << std::endl; + } + cout << "[Main] Done" << std::endl; + return 0; } |