kfmfe04
kfmfe04

Reputation: 15327

C++11 thread_pool, futures, promises support in gcc

Is any of N2276 supported in gcc yet?

I am currently using 4.6.1, where std::thread seems to be working ok.

If not, should I be using boost's threadpool?

What is a good alternative/stopgap that allows for easy transition to an eventual futures, promises, and thread_pool?

Maybe this would work?

It looks like N2276 isn't listed here. I wonder if any of N2276's features are going to make it in - I thought I read about futures and promises and other paradigms going into C++11: will have to google around and see what's going on.

Upvotes: 5

Views: 3586

Answers (2)

Saji Antony
Saji Antony

Reputation: 1

Poco library's threadpool implementation and Zthread's Executor are respected alternatives to boost threadpool.

Upvotes: 0

emsr
emsr

Reputation: 16353

The gcc C++ library status page shows much of this is implemented: thread, packaged_task, future, promise are mostly in. As noted by others <threadpool> didn't make it in.

The TR2 library enhancement process is supposed to start in January. I would expect thread pools and many other things to be proposed very soon.

Upvotes: 3

Related Questions