CoopSync for TBB 0.1.0
Cooperative synchronization primitives for TBB resumable tasks
Loading...
Searching...
No Matches
coopsync_tbb::alpaka Namespace Reference

alpaka integration. More...

Functions

template<typename Queue>
static requires ::alpaka::isQueue< Queue > void wait_for (Queue &queue)
 Suspends the current TBB task until all the work in a given alpaka queue is complete.

Detailed Description

alpaka integration.

Function Documentation

◆ wait_for()

template<typename Queue>
requires ::alpaka::isQueue< Queue > void coopsync_tbb::alpaka::wait_for ( Queue & queue)
inlinestatic

Suspends the current TBB task until all the work in a given alpaka queue is complete.

Parameters
queueThe alpaka queue to wait for.
Exceptions
std::exceptionRethrows any exception thrown by the alpaka enqueue operation.
Note
In case of error during enqueue, the task is resumed immediately and the exception is rethrown.
Template Parameters
QueueA type fulfilling the alpaka queue requirements.