iceberg-cpp
Loading...
Searching...
No Matches
Public Member Functions | List of all members
iceberg::Executor Class Referenceabstract

Schedules iceberg-cpp tasks. More...

#include <executor.h>

Public Member Functions

virtual Status Submit (ExecutorTask task)=0
 Schedule a task for execution.
 

Detailed Description

Schedules iceberg-cpp tasks.

Public APIs that accept an executor remain synchronous: the calling thread may block while waiting for submitted tasks to finish. Callers must ensure the executor can continue making progress while the caller is blocked. Calling those APIs from one of the same bounded executor's worker threads can deadlock unless the executor supports nested blocking work.

When an executor is configured, callbacks may be called concurrently. Any shared mutable state captured by those callbacks must be synchronized by the caller.

Member Function Documentation

◆ Submit()

virtual Status iceberg::Executor::Submit ( ExecutorTask  task)
pure virtual

Schedule a task for execution.

Note
Success means the task was accepted, not that it has finished. On an error or exception, the task must not run, including after Submit returns.

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