Cppgres
Build Postgres extensions in C++
|
Background worker construction and operations. More...
#include <bgw.hpp>
Classes | |
struct | handle |
struct | postmaster_died |
struct | worker_not_yet_started |
struct | worker_stopped |
Public Member Functions | |
background_worker () | |
Initialize background worker specification. | |
background_worker (::BackgroundWorker &worker) | |
background_worker & | name (std::string_view name) |
std::string_view | name () |
background_worker & | type (std::string_view name) |
std::string_view | type () |
background_worker & | library_name (std::string_view name) |
std::string_view | library_name () |
background_worker & | function_name (std::string_view name) |
std::string_view | function_name () |
background_worker & | start_time (BgWorkerStartTime time) |
::BgWorkerStartTime | start_time () const |
background_worker & | restart_time (int time) |
int | restart_time () const |
background_worker & | flags (int flags) |
int | flags () const |
background_worker & | main_arg (datum datum) |
datum | main_arg () const |
background_worker & | extra (std::string_view name) |
std::string_view | extra () |
background_worker & | notify_pid (pid_t pid) |
pid_t | notify_pid () const |
operator BackgroundWorker & () | |
operator BackgroundWorker * () | |
handle | start (bool dynamic=true) |
Background worker construction and operations.
|
inline |
Initialize background worker specification.
|
inline |
Initializes from a background worker specification reference
worker |