Provides shutdown of bot controlling mechanism. More...
#include <string>
#include "../utils/memleak.h"
#include "../utils/my_assert.h"
#include "../utils.h"
#include "../params.h"
#include "shutdown.h"
#include "../thread/mutex.h"
#include "../utils/precomp.h"
Go to the source code of this file.
Functions | |
void | bot_cancel_shutdown () |
Cancels the shutdown state. | |
void | bot_cancel_upgrade () |
Cancels the upgrade state. | |
string | bot_get_shutdown_reason () |
Retrieves who or what caused to turn into shutdown state. | |
e_shutdown_reason | bot_get_shutdown_state () |
Retrieves shutdown state of bot. | |
e_shutdown_reason | bot_get_shutdown_state_wo_mutex () |
Retrieves shutdown state of bot. | |
bool | bot_shutdown_action (e_shutdown_reason reason, const string &who) |
Sets shutdown state (if any other is not in progress already). | |
bool | bot_shutting_down () |
Retrieves shutdown state of bot. | |
Variables | |
static string | s_bot_shutdown_reason |
Name of user or other reason to kill the bot. | |
static e_shutdown_reason | s_shutdown = E_SD_NONE |
Shutdown state. | |
static c_mutex | s_shutdown_m |
Locking object to protect variables in this unit. |
Provides shutdown of bot controlling mechanism.
Definition in file shutdown.cpp.