5 #ifndef _SPICA_PARALLEL_H_
6 #define _SPICA_PARALLEL_H_
12 #include "core/common.h"
19 explicit operator double()
const;
20 double operator=(
double v);
24 std::atomic<uint64_t> bits;
29 enum class ParallelSchedule {
34 SPICA_EXPORTS
void parallel_for(
int start,
int end,
const std::function<
void(
int)>& func,
35 ParallelSchedule schedule = ParallelSchedule::Dynamic);
37 SPICA_EXPORTS
int numSystemThreads();
38 SPICA_EXPORTS
int getThreadID();
39 SPICA_EXPORTS
void setNumThreads(uint32_t n);
41 #endif // _SPICA_PARALLEL_H_
Definition: parallel.h:16