Chombo + EB
3.2
Main Page
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
b
c
e
f
i
m
n
p
r
s
u
Functions
Typedefs
Enumerations
Enumerator
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
+
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
+
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Typedefs
b
c
d
e
f
i
l
n
o
p
r
s
v
Enumerations
+
Enumerator
a
b
c
d
f
h
i
l
m
n
o
p
r
s
t
u
+
Related Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
+
Variables
a
b
c
d
f
g
h
i
k
l
m
n
p
s
t
u
+
Typedefs
a
b
c
d
i
k
l
m
n
p
r
s
Enumerations
Enumerator
+
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
src
BaseTools
CH_Thread.H
Go to the documentation of this file.
1
#ifdef CH_LANG_CC
2
/*
3
* _______ __
4
* / ___/ / ___ __ _ / / ___
5
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
6
* \___/_//_/\___/_/_/_/_.__/\___/
7
* Please refer to Copyright.txt, in Chombo's root directory.
8
*/
9
#endif
10
11
#ifdef _OPENMP
12
#include <omp.h>
13
#endif
14
15
#ifndef _CH_THREAD_H_
16
#define _CH_THREAD_H_
17
18
19
//returns true if we are on thread 0 (or if not threaded)
20
extern
bool
onThread0
();
21
22
//returns the value of OMP_NUM_THREADS (or 1 if not threaded)
23
extern
int
getMaxThreads
();
24
25
26
#endif
getMaxThreads
int getMaxThreads()
onThread0
bool onThread0()
Generated by
1.8.13