mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Revert ThreadName due to problems on Windows (#4702)
* Revert "Remove CurrentThreadName.h from RippledCore.cmake (#4697)" This reverts commit 3b5fcd587313f5ebc762bc21c6a4ec3e6c275e83. * Revert "Introduce replacement for getting and setting thread name: (#4312)" This reverts commit 36cb5f90e233f975eb3f80d819b2fbadab0a9387.
This commit is contained in:
@@ -18,8 +18,8 @@
|
||||
//==============================================================================
|
||||
|
||||
#include <ripple/basics/Log.h>
|
||||
#include <ripple/basics/ThreadUtilities.h>
|
||||
#include <ripple/basics/random.h>
|
||||
#include <ripple/beast/core/CurrentThreadName.h>
|
||||
#include <ripple/core/impl/SNTPClock.h>
|
||||
#include <boost/asio.hpp>
|
||||
#include <cmath>
|
||||
@@ -193,7 +193,7 @@ public:
|
||||
void
|
||||
doRun()
|
||||
{
|
||||
this_thread::set_name("SNTPClock");
|
||||
beast::setCurrentThreadName("rippled: SNTPClock");
|
||||
io_service_.run();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user