Public Member Functions | Public Attributes | List of all members
rapidsmpf::ProgressThread::FunctionState Class Reference

Store state of a function. More...

#include <progress_thread.hpp>

Public Member Functions

 FunctionState (Function &&function)
 Construct state of a function. More...
 
void operator() ()
 Execute the function. More...
 

Public Attributes

Function function
 The function to execute.
 
bool is_done {false}
 Whether the function has completed.
 

Detailed Description

Store state of a function.

Definition at line 98 of file progress_thread.hpp.

Constructor & Destructor Documentation

◆ FunctionState()

rapidsmpf::ProgressThread::FunctionState::FunctionState ( Function &&  function)
explicit

Construct state of a function.

Parameters
functionThe function to execute.

Member Function Documentation

◆ operator()()

void rapidsmpf::ProgressThread::FunctionState::operator() ( )

Execute the function.

Note
Calling this from multiple threads is not allowed.

The documentation for this class was generated from the following file: