- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi.
I read the document but I have one quesition.
Is it valid to always use tbb::this_task_arena::isolate() outside tbb::parallel_for()?
Rarely, deadlock occurs in the outer tbb::parallel_for().
tbb::this_task_arena::isolate([&]()
{
tbb::parallel_for(0, N1, [&](int i) // cause deadlock on here
{
tbb::this_task_arena::isolate([&]()
{
tbb::parallel_for(0, N2, [](int j) { });
}
);
})
});
Thanks
Link Copied
0 Replies
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page