mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Gracefully cast from std:🧵:hardware_concurrency
This commit is contained in:
committed by
Tom Ritchford
parent
e965b7c0da
commit
96a3a34fa4
@@ -56,7 +56,8 @@ public:
|
|||||||
*/
|
*/
|
||||||
explicit Workers (Callback& callback,
|
explicit Workers (Callback& callback,
|
||||||
String const& threadNames = "Worker",
|
String const& threadNames = "Worker",
|
||||||
int numberOfThreads = std::thread::hardware_concurrency());
|
int numberOfThreads =
|
||||||
|
static_cast<int>(std::thread::hardware_concurrency()));
|
||||||
|
|
||||||
~Workers ();
|
~Workers ();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user