Testing Spices::Semaphore::Sign.
Definition at line 17 of file Semaphore_test.h.
17 {
18
20
22
23 std::thread t([&]() {
24 std::this_thread::sleep_for(std::chrono::seconds(1));
26 });
27
28
30
31 t.join();
32
33
35 }
#define SPICESTEST_PROFILE_FUNCTION()
void Sign(int sign)
Sign this semaphore with specific value.
const int GetSign() const
Get this semaphore current sign.
std::semaphore Implementation.
References Spices::semaphore::GetSign(), and Spices::semaphore::Sign().