1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-06-17 03:50:03 +02:00

src/main.cpp: threads, use std:🧵:hardware_concurrency() as default value for n_threads.

This commit is contained in:
Henrik Hautakoski 2020-01-10 07:17:31 +01:00
parent 70965b0a60
commit a9181bab91

View file

@ -38,7 +38,7 @@
#define MIN_THREADS 2
// Number of threads to use.
static int n_threads = MIN_THREADS;
static int n_threads = std::thread::hardware_concurrency();
#define search_func thread_search
static void thread_search(const strlist_t& words, int n) {