diff options
author | Determinant <ted.sybil@gmail.com> | 2019-04-07 17:46:53 -0400 |
---|---|---|
committer | Determinant <ted.sybil@gmail.com> | 2019-04-07 17:46:53 -0400 |
commit | 03e96c4ee3dcf14873a1cdad12509683006a3329 (patch) | |
tree | 12dba4b84ffc4b862c897e1fcd5ce862d42d7bd6 /include/salticidae/event.h | |
parent | 8a0d8fbaf59be7acc536b2a753caa27aa1fbae24 (diff) |
stop the workers before MsgNetwork releases the queue
Diffstat (limited to 'include/salticidae/event.h')
-rw-r--r-- | include/salticidae/event.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/salticidae/event.h b/include/salticidae/event.h index df49c58..946dda1 100644 --- a/include/salticidae/event.h +++ b/include/salticidae/event.h @@ -547,7 +547,6 @@ class MPMCQueueEventDriven: public MPMCQueue<T> { class ThreadCall { public: class Handle; private: - int ctl_fd[2]; EventContext ec; const size_t burst_size; using queue_t = MPSCQueueEventDriven<Handle *>; @@ -621,8 +620,6 @@ class ThreadCall { ~ThreadCall() { Handle *h; while (q.try_dequeue(h)) delete h; - close(ctl_fd[0]); - close(ctl_fd[1]); } template<typename Func> |