#include <log_reopen.h>
◆ reopen_callback
◆ LogReopen()
mysql_harness::LogReopen::LogReopen |
( |
| ) |
|
|
inline |
◆ ~LogReopen()
mysql_harness::LogReopen::~LogReopen |
( |
| ) |
|
destruct the thread.
Same as std::thread it may call std::terminate in case the thread isn't joined yet, but joinable.
In case join() fails as best-effort, a log-message is attempted to be written.
◆ completed()
bool mysql_harness::LogReopen::completed |
( |
| ) |
const |
◆ get_last_error()
std::string mysql_harness::LogReopen::get_last_error |
( |
| ) |
const |
get last log reopen error
◆ join()
void mysql_harness::LogReopen::join |
( |
| ) |
|
|
private |
join the log_reopen thread.
- Exceptions
-
std::system_error | same as std::thread::join |
◆ main_loop()
void mysql_harness::LogReopen::main_loop |
( |
LogReopen * |
self | ) |
|
|
staticprivate |
◆ request_reopen()
void mysql_harness::LogReopen::request_reopen |
( |
const std::string & |
dst = "" | ) |
|
notify a "log_reopen" is requested with optional filename for old logfile.
- Parameters
-
dst | rename old logfile to filename before reopen |
- Exceptions
-
std::system_error | same as std::unique_lock::lock does |
◆ set_complete_callback()
Setter for the log reopen thread completion callback function.
- Parameters
-
cb | Function to call at completion. |
◆ stop()
void mysql_harness::LogReopen::stop |
( |
| ) |
|
|
private |
stop the log_reopen_thread_function.
◆ main_loop
◆ complete_callback_
◆ reopen_thr_
std::thread mysql_harness::LogReopen::reopen_thr_ |
|
private |
◆ thread_state_
The documentation for this class was generated from the following files: