Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.

Boost::Thread interoperability

idan192
Beginner
202 Views
Hi,
I have looked at Boost::Thread API, it looks rather similar to TBB threads. The difference (from the user point of view) is that Boost::Thread have a rich API for threads, but nothing regarding task-based parallelism.
If I'm not mistaken, threads have been added to TBB lately, right?
I thought, is it possible to use Boost::Threads together with TBB? Has anybody ever tried to?
Best,
Idan
0 Kudos
1 Reply
Dmitry_Vyukov
Valued Contributor I
202 Views
> If I'm not mistaken, threads have been added to TBB lately, right?

About 2 years ago, IIRC.

> I thought, is it possible to use Boost::Threads together with TBB? Has anybody ever tried to?

It should be Ok, TBB does not make any assumptions on what thread it's called from.


0 Kudos
Reply