
9 Mar
2011
9 Mar
'11
4 p.m.
On 03/09/2011 03:07 AM, Anthony Williams wrote:
Boost.Thread relies on boost::bind. As such, it won't support variadic templates until boost::bind does. Any idea when boost::bind will support variadic templates? Any reason Boost.Thread couldn't add the option to use std::bind instead?
We'd use c++0x, but it looks like there's no plan to support timed_join and interruption/cancellation.
You're right: interruption was too controversial, and timed_join imposes too much overhead on some implementations. If you need the equivalent, use std::async(std::launch::async,thread_func) to start your thread, and use wait_for/wait_until on the returned std::future. Any there any workarounds for interruption? Possibly using Boost?
Thanks. - Daniel