Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
hardware_concurrency.cpp
Go to the documentation of this file.
3#include <cstdlib>
4#include <iostream>
5#include <stdexcept>
6#include <string>
7
8#ifndef NO_MULTITHREADING
9#include <thread>
10#endif
11
12extern "C" {
13
15{
16#ifdef NO_MULTITHREADING
17 return 1;
18#else
19 return std::thread::hardware_concurrency();
20#endif
21}
22}
uint32_t env_hardware_concurrency()