diff options
author | David Robillard <d@drobilla.net> | 2016-07-30 12:37:20 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-07-30 12:37:20 -0400 |
commit | 5467a063eeb551d64cd0b7588d3aa7460328a38d (patch) | |
tree | 333b136bd030505e2c03943535c7826c35d74de3 | |
parent | 4b1cfd2c6debd8a70fa056aca45a66587316a9dc (diff) | |
download | raul-5467a063eeb551d64cd0b7588d3aa7460328a38d.tar.gz raul-5467a063eeb551d64cd0b7588d3aa7460328a38d.tar.bz2 raul-5467a063eeb551d64cd0b7588d3aa7460328a38d.zip |
Improve Semaphore test
-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; } |