mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-07-04 12:03:41 +02:00
src/main.cpp: threads, use std:🧵:hardware_concurrency() as default value for n_threads.
This commit is contained in:
parent
70965b0a60
commit
a9181bab91
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@
|
||||||
#define MIN_THREADS 2
|
#define MIN_THREADS 2
|
||||||
|
|
||||||
// Number of threads to use.
|
// Number of threads to use.
|
||||||
static int n_threads = MIN_THREADS;
|
static int n_threads = std::thread::hardware_concurrency();
|
||||||
|
|
||||||
#define search_func thread_search
|
#define search_func thread_search
|
||||||
static void thread_search(const strlist_t& words, int n) {
|
static void thread_search(const strlist_t& words, int n) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue