MySQL 8.0.39
Source Code Documentation
|
PluginFuncEnv object. More...
#include <loader.h>
Public Member Functions | |
PluginFuncEnv (const AppInfo *info, const ConfigSection *section, bool running=false) | |
Constructor. More... | |
const ConfigSection * | get_config_section () const noexcept |
const AppInfo * | get_app_info () const noexcept |
void | set_running () noexcept |
void | clear_running () noexcept |
bool | is_running () const noexcept |
bool | wait_for_stop (uint32_t milliseconds) const noexcept |
bool | exit_ok () const noexcept |
void | set_error (ErrorType error_type, const char *fmt, va_list ap) noexcept |
std::tuple< std::string, std::exception_ptr > | pop_error () noexcept |
Private Attributes | |
const AppInfo * | app_info_ |
const ConfigSection * | config_section_ |
bool | running_ |
std::string | error_message_ |
ErrorType | error_type_ = kNoError |
std::condition_variable | cond_ |
std::mutex | mutex_ |
PluginFuncEnv object.
This object is the basis of all communication between Harness and plugin functions. It is passed to plugin functions (as an opaque pointer), and plugin functions return it back to Harness when calling Harness API functions. It has several functions:
mysql_harness::PluginFuncEnv::PluginFuncEnv | ( | const AppInfo * | info, |
const ConfigSection * | section, | ||
bool | running = false |
||
) |
Constructor.
info | AppInfo to pass to plugin function. Can be NULL. Pointer is owned by the caller and must outlive plugin function call. |
section | ConfigSection to pass to plugin function. Can be NULL. Pointer is owned by the caller and must outlive plugin function call. |
running | Set "running" flag. true = plugin should be running |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
private |
|
mutableprivate |
|
private |
|
private |
|
private |
|
mutableprivate |
|
private |