Problem: ctx_t::_slots is a plain array

Solution: use a std::vector instead
This commit is contained in:
Simon Giesecke
2018-05-28 09:23:43 +02:00
parent a0a60e80ca
commit 16bb62e6f7
2 changed files with 17 additions and 24 deletions

View File

@@ -198,8 +198,7 @@ class ctx_t : public thread_ctx_t
io_threads_t _io_threads;
// Array of pointers to mailboxes for both application and I/O threads.
uint32_t _slot_count;
i_mailbox **_slots;
std::vector<i_mailbox *> _slots;
// Mailbox for zmq_ctx_term thread.
mailbox_t _term_mailbox;