qualcomm/qbox
Loading...
Searching...
No Matches
gs::runonsysc::Core::AsyncJob Struct Reference

Public Types

using Ptr = std::shared_ptr<AsyncJob>

Public Member Functions

 AsyncJob (std::function< void()> j)
void operator() ()
void cancel ()
void wait ()
bool is_cancelled () const

Public Attributes

std::function< void()> job
std::promise< void > done_promise
std::shared_future< void > done_future
std::atomic< bool > cancelled { false }

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