|
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."
http://www.boost.org/doc/libs/1_47_0/doc/html/thread/thread_management.html
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net