mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 14:05:51 +00:00
For now, limit to one transaction thread in standalone mode.
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
#include <boost/thread.hpp>
|
#include <boost/thread.hpp>
|
||||||
|
|
||||||
#include "Log.h"
|
#include "Log.h"
|
||||||
|
#include "Config.h"
|
||||||
|
|
||||||
SETUP_LOG();
|
SETUP_LOG();
|
||||||
|
|
||||||
@@ -184,7 +185,9 @@ void JobQueue::shutdown()
|
|||||||
|
|
||||||
void JobQueue::setThreadCount(int c)
|
void JobQueue::setThreadCount(int c)
|
||||||
{ // set the number of thread serving the job queue to precisely this number
|
{ // set the number of thread serving the job queue to precisely this number
|
||||||
if (c == 0)
|
if (theConfig.RUN_STANDALONE)
|
||||||
|
c = 1;
|
||||||
|
else if (c == 0)
|
||||||
{
|
{
|
||||||
c = boost::thread::hardware_concurrency();
|
c = boost::thread::hardware_concurrency();
|
||||||
if (c < 2)
|
if (c < 2)
|
||||||
|
|||||||
Reference in New Issue
Block a user