Bridge++
Ver. 2.0.3
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
a
b
c
d
e
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
d
t
v
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
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
i
j
k
l
m
n
o
p
r
s
t
v
w
y
Typedefs
a
b
c
d
e
i
k
l
m
o
p
r
s
t
u
v
Enumerations
Enumerator
c
e
f
g
i
l
m
n
p
r
s
u
v
z
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
f
g
h
i
l
m
n
o
r
s
t
u
y
Variables
Typedefs
a
c
e
f
i
m
o
r
s
t
u
Enumerations
Enumerator
Macros
_
a
b
c
d
e
i
l
n
r
t
u
v
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
field_thread-inc.h
Go to the documentation of this file.
1
10
#ifndef FIELD_THREAD_INC_INCLUDED
11
#define FIELD_THREAD_INC_INCLUDED
12
13
#include "
ResourceManager/threadManager.h
"
14
15
namespace
{
16
// Equal tasks for all threads
17
inline
void
set_threadtask(
int
& ith,
int
& nth,
int
& is,
int
& ns,
18
const
int
size)
19
{
20
nth =
ThreadManager::get_num_threads
();
21
ith =
ThreadManager::get_thread_id
();
22
23
size_t
is2 = size_t(size) * size_t(ith) / nth;
24
size_t
ns2 = size_t(size) * size_t(ith + 1) / nth;
25
is = int(is2);
26
ns = int(ns2);
27
}
28
}
29
30
#endif
31
//============================================================END=====
ThreadManager::get_num_threads
static int get_num_threads()
returns available number of threads.
Definition:
threadManager.cpp:246
threadManager.h
ThreadManager::get_thread_id
static int get_thread_id()
returns thread id.
Definition:
threadManager.cpp:253
src
lib
Field
field_thread-inc.h
Generated on Wed Mar 19 2025 11:03:46 for Bridge++ by
1.8.17