forked from lthn/blockchain
get_callstack_win_x64() made thread-safe
This commit is contained in:
parent
12ea93fef8
commit
4369439fbc
1 changed files with 5 additions and 0 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue