Boost logo

Boost Users :

Subject: Re: [Boost-users] thread running many times
From: Igor R (boost.lists_at_[hidden])
Date: 2011-09-12 06:41:04

> That's my question, I have create a thread groups with object and run them. I would like to run the same objects with the same parameters again, so need I (re)create the objects within the group again

Yes, you have to recreate them. Quoting from the documentation:
"A new thread is launched by passing an object of a callable type that
can be invoked with no parameters to the constructor. The object is
then copied into internal storage, and invoked on the newly-created
thread of execution."

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