aboutsummaryrefslogtreecommitdiff
path: root/test/test_queue.cpp
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2018-11-18 17:53:58 -0500
committerDeterminant <[email protected]>2018-11-18 17:53:58 -0500
commit499fcb776d691da06ec2da9a0fbadc3cbcf8758f (patch)
tree94b6666b8ca6f2879b466c1fe2be254b2cd96fe2 /test/test_queue.cpp
parent161d969e0eabfecccd69a6b9ed2d03919cf89cb5 (diff)
make logger thread-safe and add tty color
Diffstat (limited to 'test/test_queue.cpp')
-rw-r--r--test/test_queue.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_queue.cpp b/test/test_queue.cpp
index 5a7b548..41c6f88 100644
--- a/test/test_queue.cpp
+++ b/test/test_queue.cpp
@@ -26,7 +26,7 @@ void test_mpsc(int nproducers = 16, int nops = 100000, size_t burst_size = 128)
salticidae::Event timer(ec, -1, [&ec, &collected, total](int, short) {
if (collected.load() == total) ec.stop();
});
- timer.add_with_timeout(1, EV_TIMEOUT | EV_PERSIST);
+ timer.add_with_timeout(1, 0);
ec.dispatch();
});
for (int i = 0; i < nproducers; i++)