Cppgres
Build Postgres extensions in C++
Loading...
Searching...
No Matches
cppgres::background_worker Struct Reference

Background worker construction and operations. More...

#include <bgw.hpp>

Inheritance diagram for cppgres::background_worker:
cppgres::current_background_worker

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_workername (std::string_view name)
 
std::string_view name ()
 
background_workertype (std::string_view name)
 
std::string_view type ()
 
background_workerlibrary_name (std::string_view name)
 
std::string_view library_name ()
 
background_workerfunction_name (std::string_view name)
 
std::string_view function_name ()
 
background_workerstart_time (BgWorkerStartTime time)
 
::BgWorkerStartTime start_time () const
 
background_workerrestart_time (int time)
 
int restart_time () const
 
background_workerflags (int flags)
 
int flags () const
 
background_workermain_arg (datum datum)
 
datum main_arg () const
 
background_workerextra (std::string_view name)
 
std::string_view extra ()
 
background_workernotify_pid (pid_t pid)
 
pid_t notify_pid () const
 
 operator BackgroundWorker & ()
 
 operator BackgroundWorker * ()
 
handle start (bool dynamic=true)
 

Detailed Description

Background worker construction and operations.

Constructor & Destructor Documentation

◆ background_worker() [1/2]

cppgres::background_worker::background_worker ( )
inline

Initialize background worker specification.

Note
Initializes pid notification to be directed to the current process by default, can be overriden by notify_pid(pid_t)

◆ background_worker() [2/2]

cppgres::background_worker::background_worker ( ::BackgroundWorker &  worker)
inline

Initializes from a background worker specification reference

Parameters
worker

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