Boost logo

Boost :

Subject: Re: [boost] Boost.Thread: Support for variadic templates
From: Anthony Williams (anthony.ajw_at_[hidden])
Date: 2011-03-09 03:07:40


Daniel Neuberger <daniel.neuberger_at_[hidden]> writes:

> Are there plans for Boost.Thread to support variadic templates
> sometime soon?

Boost.Thread relies on boost::bind. As such, it won't support variadic
templates until boost::bind does.

> 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.

> Will Boost.Thread continue to do so though or is there something I'm
> missing in regards to c++0x?

There are no plans for Boost.Thread to drop interruption or timed_join.

Anthony

-- 
Author of C++ Concurrency in Action     http://www.stdthread.co.uk/book/
just::thread C++0x thread library             http://www.stdthread.co.uk
Just Software Solutions Ltd       http://www.justsoftwaresolutions.co.uk
15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK. Company No. 5478976

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk