|
Cppgres
Build Postgres extensions in C++
|
Single-threaded Postgres workload worker. More...
#include <threading.hpp>
Public Member Functions | |
| void | terminate () |
| template<typename F , typename... Args> | |
| auto | post (F &&f, Args &&...args) -> std::future< std::invoke_result_t< F, Args... > > |
| void | run () |
| Run the worker. | |
Single-threaded Postgres workload worker.
|
inline |
Run the worker.
| std::runtime_error | if called on a secondary thread |