12 #include <ucxx/delayed_submission.h>
50 std::thread _thread{};
52 bool _pollingMode{
false};
60 std::shared_ptr<DelayedSubmissionCollection> _delayedSubmissionCollection{
80 static void progressUntilSync(
81 std::function<
bool(
void)> progressFunction,
85 std::shared_ptr<DelayedSubmissionCollection> delayedSubmissionCollection);
124 std::function<
bool(
void)> progressFunction,
125 std::function<
void(
void)> signalWorkerFunction,
128 std::shared_ptr<DelayedSubmissionCollection> delayedSubmissionCollection);
A thread to progress a ucxx::Worker.
Definition: worker_progress_thread.h:48
std::thread::id getId() const
Returns the ID of the progress thread.
~WorkerProgressThread()
ucxx::WorkerProgressThread destructor.
WorkerProgressThread(const bool pollingMode, std::function< bool(void)> progressFunction, std::function< void(void)> signalWorkerFunction, ProgressThreadStartCallback startCallback, ProgressThreadStartCallbackArg startCallbackArg, std::shared_ptr< DelayedSubmissionCollection > delayedSubmissionCollection)
Constructor of shared_ptr<ucxx::Worker>.
bool pollingMode() const
Returns whether the thread was created for polling progress mode.
std::function< void(void *)> ProgressThreadStartCallback
A user-defined function to execute at the start of the progress thread.
Definition: worker_progress_thread.h:29
void * ProgressThreadStartCallbackArg
Data for the user-defined function provided to progress thread start callback.
Definition: worker_progress_thread.h:37
std::function< void(void)> SignalWorkerFunction
A user-defined function used to wake the worker.
Definition: worker_progress_thread.h:21