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:
@@ -18,7 +18,7 @@
|
||||
//==============================================================================
|
||||
|
||||
#include <ripple/app/main/BasicApp.h>
|
||||
#include <ripple/basics/ThreadUtilities.h>
|
||||
#include <ripple/beast/core/CurrentThreadName.h>
|
||||
|
||||
BasicApp::BasicApp(std::size_t numberOfThreads)
|
||||
{
|
||||
@@ -28,7 +28,7 @@ BasicApp::BasicApp(std::size_t numberOfThreads)
|
||||
while (numberOfThreads--)
|
||||
{
|
||||
threads_.emplace_back([this, numberOfThreads]() {
|
||||
ripple::this_thread::set_name(
|
||||
beast::setCurrentThreadName(
|
||||
"io svc #" + std::to_string(numberOfThreads));
|
||||
this->io_service_.run();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user