class single_threaded_executor
Defined at line 22 of file ../../sdk/lib/fit-promise/include/lib/fpromise/single_threaded_executor.h
A simple platform-independent single-threaded asynchronous task executor.
This implementation is designed for use when writing simple single-threaded
platform-independent applications. It may be less efficient or provide
fewer features than more specialized or platform-dependent executors.
See documentation of |fpromise::promise| for more information.
Public Methods
void single_threaded_executor (const single_threaded_executor & )
Defined at line 42 of file ../../sdk/lib/fit-promise/include/lib/fpromise/single_threaded_executor.h
void single_threaded_executor (single_threaded_executor && )
Defined at line 43 of file ../../sdk/lib/fit-promise/include/lib/fpromise/single_threaded_executor.h
single_threaded_executor & operator= (const single_threaded_executor & )
Defined at line 44 of file ../../sdk/lib/fit-promise/include/lib/fpromise/single_threaded_executor.h
single_threaded_executor & operator= (single_threaded_executor && )
Defined at line 45 of file ../../sdk/lib/fit-promise/include/lib/fpromise/single_threaded_executor.h
void single_threaded_executor ()
Defined at line 55 of file ../../sdk/lib/fit-promise/single_threaded_executor.cc
void ~single_threaded_executor ()
Destroys the executor along with all of its remaining scheduled tasks
that have yet to complete.
Defined at line 58 of file ../../sdk/lib/fit-promise/single_threaded_executor.cc
void schedule_task (pending_task task)
Schedules a task for eventual execution by the executor.
This method is thread-safe.
Defined at line 60 of file ../../sdk/lib/fit-promise/single_threaded_executor.cc
void run ()
Runs all scheduled tasks (including additional tasks scheduled while
they run) until none remain.
This method is thread-safe but must only be called on at most one
thread at a time.
Defined at line 65 of file ../../sdk/lib/fit-promise/single_threaded_executor.cc