1
0
Fork 0
forked from lthn/blockchain

get_callstack_win_x64() made thread-safe

This commit is contained in:
sowle 2020-05-22 16:30:34 +03:00
parent 12ea93fef8
commit 4369439fbc
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -105,6 +105,11 @@ namespace tools
std::string get_callstack_win_x64()
{
// @TODO@
// static epee::static_helpers::wrapper<std::recursive_mutex> cs;
static std::recursive_mutex cs;
std::lock_guard<std::recursive_mutex> lock(cs);
HANDLE h_process = GetCurrentProcess();
HANDLE h_thread = GetCurrentThread();