Boost logo

Boost :

Subject: Re: [boost] [thread] countdown_latch
From: Gaetano Mendola (mendola_at_[hidden])
Date: 2013-05-11 16:35:52

On 22/04/2013 06.30, Vicente J. Botet Escriba wrote:
> I don't know your constraints:
> Why do you need to run the setup on the new created thread?
> Could it be executed directly on the widget constructor?

I have the same pattern in my framework and I solved it with
a simple barrier (however I incour in an extra syncronization
not needed, indeed the created thread body has to wait has well
that the thread creator reaches the barrier.

In my very case the setup *has* to be run by the thread because
in my case the setup does:

1) cpu affinity
2) thread priority change

Gaetano Mendola

Boost list run by bdawes at, gregod at, cpdaniel at, john at