20 Jan
20 Jan
12:07 a.m.
On Sat, Jan 20, 2018 at 12:17 AM, kjw via Boost-users < boost-users@lists.boost.org> wrote:
I am a user of the Boost Thread library experimental class, "sync_queue".
I would like to know if there is a way to remove all elements currently in the queue.
I don't see a "clear()" or "erase()" type method exposed and I don't see an easy way to access the internal container as a workaround.
I think the close() operation is the closest thing to what you want. It looks like this type doesn't present copy assignation either so you cannot do my_queue = {}; to reset it. I suspect this is by design. Joël Lamotte
2501
Age (days ago)
2503
Last active (days ago)
2 comments
2 participants
participants (2)
-
kjw
-
Klaim - Joël Lamotte