diff options
author | Determinant <[email protected]> | 2019-06-16 14:26:17 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2019-06-16 14:26:17 -0400 |
commit | 77a765023bff4fa3d41001bdc1de9d106e35f348 (patch) | |
tree | e0fb14c025d8b91bbac9d6bbb39b01c331b1de38 /include | |
parent | d66b85289a1552e02e4c2c7cf62aa11ed240d5e3 (diff) |
fix bug: forget to initialize the stopped flag in ThreadCall
Diffstat (limited to 'include')
-rw-r--r-- | include/salticidae/event.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; |