|
|
@ -1,8 +1,8 @@
|
|
|
|
#include "includes.h"
|
|
|
|
#include "includes.h"
|
|
|
|
|
|
|
|
|
|
|
|
using namespace std::chrono;
|
|
|
|
using namespace std::chrono;
|
|
|
|
using std::chrono::system_clock;
|
|
|
|
|
|
|
|
using std::chrono::milliseconds;
|
|
|
|
using std::chrono::milliseconds;
|
|
|
|
|
|
|
|
using std::chrono::system_clock;
|
|
|
|
|
|
|
|
|
|
|
|
system_clock::time_point now_millis()
|
|
|
|
system_clock::time_point now_millis()
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -21,7 +21,6 @@ TEST_CASE("dequeue-empty-nowait", "[mpmc_blocking_q]")
|
|
|
|
|
|
|
|
|
|
|
|
REQUIRE(rv == false);
|
|
|
|
REQUIRE(rv == false);
|
|
|
|
REQUIRE((millis_1 - millis_0) <= tolerance_wait);
|
|
|
|
REQUIRE((millis_1 - millis_0) <= tolerance_wait);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
TEST_CASE("dequeue-empty-wait", "[mpmc_blocking_q]")
|
|
|
|
TEST_CASE("dequeue-empty-wait", "[mpmc_blocking_q]")
|
|
|
@ -43,7 +42,6 @@ TEST_CASE("dequeue-empty-wait", "[mpmc_blocking_q]")
|
|
|
|
REQUIRE(delta_ms <= wait_ms + tolerance_wait);
|
|
|
|
REQUIRE(delta_ms <= wait_ms + tolerance_wait);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TEST_CASE("enqueue_nowait", "[mpmc_blocking_q]")
|
|
|
|
TEST_CASE("enqueue_nowait", "[mpmc_blocking_q]")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|