Open3D (C++ API)  0.18.0+252c867
Parallel.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - Open3D: www.open3d.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2023 www.open3d.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 namespace open3d {
11 namespace utility {
12 
14 int EstimateMaxThreads();
15 
17 bool InParallel();
18 
19 } // namespace utility
20 } // namespace open3d
bool InParallel()
Returns true if in an parallel section.
Definition: Parallel.cpp:48
int EstimateMaxThreads()
Estimate the maximum number of threads to be used in a parallel region.
Definition: Parallel.cpp:31
Definition: PinholeCameraIntrinsic.cpp:16