From 77a765023bff4fa3d41001bdc1de9d106e35f348 Mon Sep 17 00:00:00 2001 From: Determinant Date: Sun, 16 Jun 2019 14:26:17 -0400 Subject: fix bug: forget to initialize the stopped flag in ThreadCall --- include/salticidae/event.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/salticidae/event.h b/include/salticidae/event.h index eb0b382..4dd00d7 100644 --- a/include/salticidae/event.h +++ b/include/salticidae/event.h @@ -605,7 +605,7 @@ class ThreadCall { ThreadCall(size_t burst_size): burst_size(burst_size), stopped(false) {} ThreadCall(const ThreadCall &) = delete; ThreadCall(ThreadCall &&) = delete; - ThreadCall(EventContext ec, size_t burst_size = 128): ec(ec), burst_size(burst_size) { + ThreadCall(EventContext ec, size_t burst_size = 128): ec(ec), burst_size(burst_size), stopped(false) { q.reg_handler(ec, [this, burst_size=burst_size](queue_t &q) { size_t cnt = 0; Handle *h; -- cgit v1.2.3-70-g09d2