Open3D (C++ API)  0.19.0
Parallel.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - Open3D: www.open3d.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 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 int GetThreadNum();
18 
20 bool InParallel();
21 
22 } // namespace utility
23 } // namespace open3d
int GetThreadNum()
Returns the thread ID in the current parallel region.
Definition: Parallel.cpp:48
bool InParallel()
Returns true if in an parallel section.
Definition: Parallel.cpp:56
int EstimateMaxThreads()
Estimate the maximum number of threads to be used in a parallel region.
Definition: Parallel.cpp:31
Definition: PinholeCameraIntrinsic.cpp:16