Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost sync_queue clear
From: kjw (kenneth69_at_[hidden])
Date: 2018-01-21 22:06:11

Thank you for the response. I'll give close() a try.


------ Original Message ------
Received: 07:08 PM EST, 01/19/2018
From: Klaim - JoŽl Lamotte via Boost-users <>
To: Boost users list <>
Cc: Klaim - JoŽl Lamotte <>
Subject: Re: [Boost-users] Boost sync_queue clear

On Sat, Jan 20, 2018 at 12:17 AM, kjw via Boost-users <> 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

Boost-users mailing list

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at