mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Revert ThreadName due to problems on Windows (#4702)
* Revert "Remove CurrentThreadName.h from RippledCore.cmake (#4697)" This reverts commit3b5fcd5873. * Revert "Introduce replacement for getting and setting thread name: (#4312)" This reverts commit36cb5f90e2.
This commit is contained in:
@@ -22,9 +22,9 @@
|
||||
#include <ripple/app/rdb/Vacuum.h>
|
||||
#include <ripple/basics/Log.h>
|
||||
#include <ripple/basics/StringUtilities.h>
|
||||
#include <ripple/basics/ThreadUtilities.h>
|
||||
#include <ripple/basics/contract.h>
|
||||
#include <ripple/beast/clock/basic_seconds_clock.h>
|
||||
#include <ripple/beast/core/CurrentThreadName.h>
|
||||
#include <ripple/core/Config.h>
|
||||
#include <ripple/core/ConfigSections.h>
|
||||
#include <ripple/core/TimeKeeper.h>
|
||||
@@ -348,7 +348,8 @@ run(int argc, char** argv)
|
||||
{
|
||||
using namespace std;
|
||||
|
||||
this_thread::set_name("main " + BuildInfo::getVersionString());
|
||||
beast::setCurrentThreadName(
|
||||
"rippled: main " + BuildInfo::getVersionString());
|
||||
|
||||
po::variables_map vm;
|
||||
|
||||
@@ -826,7 +827,7 @@ run(int argc, char** argv)
|
||||
}
|
||||
|
||||
// We have an RPC command to process:
|
||||
this_thread::set_name("rippled: rpc");
|
||||
beast::setCurrentThreadName("rippled: rpc");
|
||||
return RPCCall::fromCommandLine(
|
||||
*config, vm["parameters"].as<std::vector<std::string>>(), *logs);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user