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