Turi Create
4.0
|
#include <ml/neural_net/PosixTaskQueue.hpp>
Public Member Functions | |
void | DispatchApply (size_t n, std::function< void(size_t i)> task) override |
void | DispatchAsync (std::function< void()> task) override |
void | DispatchSync (std::function< void()> task) override |
Concrete implementation of PosixTaskQueue that owns a private thread_pool instance.
Definition at line 31 of file PosixTaskQueue.hpp.
|
overridevirtual |
Submits a function to this task queue n times, with arguments ranging from 0 to n - 1. When dispatched to a concurrent queue, the function must be reentrant. Rethrows the first exception thrown by any task invocation.
Implements turi::neural_net::TaskQueue.
|
overridevirtualinherited |
Submits a function to this task queue without waiting for the function to finish. The task must not throw an exception.
Implements turi::neural_net::TaskQueue.
|
overridevirtualinherited |
Submits a function to this task queue and waits for the function to execute. The task must not throw an exception.
Implements turi::neural_net::TaskQueue.