mavtables  0.2.1
MAVLink router and firewall.
Functions
test_semaphore.cpp File Reference
#include <chrono>
#include <future>
#include <catch.hpp>
#include <semaphore.hpp>
Include dependency graph for test_semaphore.cpp:

Go to the source code of this file.

Functions

 TEST_CASE ("semaphore's can be constructed.", "[semaphore]")
 
 TEST_CASE ("semaphore's 'wait' method waits until the semaphore can be " "decremented.", "[semaphore]")
 
 TEST_CASE ("semaphore's 'wait_for' method waits until the semaphore can be " "decremented, or the timeout is reached (returning false if it " "timed out).", "[semaphore]")
 
 TEST_CASE ("semaphore's 'wait_until' method waits until the semaphore can be " "decremented, or the timeout timepoint is reached (returning false " "if it timed out).", "[semaphore]")
 

Function Documentation

◆ TEST_CASE() [1/4]

TEST_CASE ( "semaphore's can be constructed."  ,
""  [semaphore] 
)

Definition at line 29 of file test_semaphore.cpp.

◆ TEST_CASE() [2/4]

TEST_CASE ( "semaphore's 'wait' method waits until the semaphore can be " "decremented."  ,
""  [semaphore] 
)

Definition at line 36 of file test_semaphore.cpp.

◆ TEST_CASE() [3/4]

TEST_CASE ( "semaphore's 'wait_for' method waits until the semaphore can be " "  decremented,
or the timeout is reached(returning false if it " "timed out)."  ,
""  [semaphore] 
)

Definition at line 115 of file test_semaphore.cpp.

◆ TEST_CASE() [4/4]

TEST_CASE ( "semaphore's 'wait_until' method waits until the semaphore can be " "  decremented,
or the timeout timepoint is reached(returning false " "if it timed out)."  ,
""  [semaphore] 
)

Definition at line 188 of file test_semaphore.cpp.