MySQL 8.0.40
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
sysd Namespace Reference

Classes

class  NotifyGlobals
 Class wrapping the "globals" as static members so that they can only be accessed from the friend-declared notify functions. More...
 

Functions

void notify_connect ()
 Looks for the name of the socket file in the environment variable NOTIFY_SOCKET. More...
 
void notify ()
 Recursion terminator overload for varargs template function. More...
 
template<typename T , typename... Ts>
void notify (T t, Ts... ts)
 Takes a variable number of arguments of different type and formats them on NotifyGlobals::fmt, and sends result to notification socket. More...
 

Function Documentation

◆ notify() [1/2]

void sysd::notify ( )

Recursion terminator overload for varargs template function.

Creates a string from the current content of NotifyGlobals::fmt and sends string to notification socket.

◆ notify() [2/2]

template<typename T , typename... Ts>
void sysd::notify ( t,
Ts...  ts 
)
inline

Takes a variable number of arguments of different type and formats them on NotifyGlobals::fmt, and sends result to notification socket.

Parameters
tcurrent argument to format
tsremaining args parameter pack for recursive call

◆ notify_connect()

void sysd::notify_connect ( )

Looks for the name of the socket file in the environment variable NOTIFY_SOCKET.

Connects NotifyGlobals::socket to it if present.