33 #include <boost/thread/locks.hpp> 34 #include <boost/thread/mutex.hpp> 35 #include <boost/optional.hpp> 36 #include <system_error> 45 #include "misc_log_ex.h" 71 std::unique_ptr<std::FILE, close_file>
m_handle;
129 std::string get_special_folder_path(
int nfolder,
bool iscreate);
148 std::error_code
replace_file(
const std::string& replacement_name,
const std::string& replaced_name);
166 bool r = TRUE == ::SetConsoleCtrlHandler(&win_handler, TRUE);
173 static struct sigaction sa;
174 memset(&sa, 0,
sizeof(
struct sigaction));
178 sigaction(SIGINT, &sa, NULL);
180 signal(SIGPIPE, SIG_IGN);
189 static BOOL WINAPI win_handler(DWORD type)
191 if (CTRL_C_EVENT == type || CTRL_BREAK_EVENT == type)
197 MGINFO_RED(
"Got control signal " << type <<
". Exiting without saving...");
213 static boost::mutex m_mutex;
214 boost::unique_lock<boost::mutex> lock(m_mutex);
233 boost::optional<bool>
is_hdd(
const char *path);
const uint32_t T[512]
Definition: groestl_tables.h:33
Definition: blockchain_ancestry.cpp:70
#define v1(p)
Definition: aesb.c:116
#define v0(p)
Definition: aesb.c:115
POD_CLASS hash
Definition: hash.h:49