Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
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
k
l
m
n
o
p
q
r
s
t
u
v
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
x
y
Typedefs
a
b
c
d
f
h
i
n
o
p
q
r
s
t
u
Enumerations
a
c
d
e
f
i
m
n
p
q
r
s
t
u
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
Classes
Class List
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
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
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
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerations
a
b
c
d
e
f
g
i
l
m
n
p
r
s
t
u
w
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
Related Functions
c
e
h
i
m
o
p
q
s
t
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
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
l
m
n
o
p
q
r
s
t
u
v
x
z
Variables
a
b
c
e
g
i
l
m
n
p
r
s
t
v
x
y
Typedefs
a
b
c
d
e
f
h
i
l
m
n
p
q
r
s
t
u
Enumerator
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
src
extern
eigen3
unsupported
Eigen
CXX11
src
ThreadPool
ThreadPoolInterface.h
Go to the documentation of this file.
1
// This file is part of Eigen, a lightweight C++ template library
2
// for linear algebra.
3
//
4
// Copyright (C) 2014 Benoit Steiner <benoit.steiner.goog@gmail.com>
5
//
6
// This Source Code Form is subject to the terms of the Mozilla
7
// Public License v. 2.0. If a copy of the MPL was not distributed
8
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
10
#ifndef EIGEN_CXX11_THREADPOOL_THREAD_POOL_INTERFACE_H
11
#define EIGEN_CXX11_THREADPOOL_THREAD_POOL_INTERFACE_H
12
13
namespace
Eigen
{
14
15
// This defines an interface that ThreadPoolDevice can take to use
16
// custom thread pools underneath.
17
class
ThreadPoolInterface
{
18
public
:
19
virtual
void
Schedule
(std::function<
void
()> fn) = 0;
20
21
// Returns the number of threads in the pool.
22
virtual
int
NumThreads
()
const
= 0;
23
24
// Returns a logical thread index between 0 and NumThreads() - 1 if called
25
// from one of the threads in the pool. Returns -1 otherwise.
26
virtual
int
CurrentThreadId
()
const
= 0;
27
28
virtual
~ThreadPoolInterface
() {}
29
};
30
31
}
// namespace Eigen
32
33
#endif // EIGEN_CXX11_THREADPOOL_THREAD_POOL_INTERFACE_H
Eigen
Definition:
common.h:73
Eigen::ThreadPoolInterface::NumThreads
virtual int NumThreads() const =0
Eigen::ThreadPoolInterface::~ThreadPoolInterface
virtual ~ThreadPoolInterface()
Definition:
ThreadPoolInterface.h:28
Eigen::ThreadPoolInterface
Definition:
ThreadPoolInterface.h:17
Eigen::ThreadPoolInterface::Schedule
virtual void Schedule(std::function< void()> fn)=0
Eigen::ThreadPoolInterface::CurrentThreadId
virtual int CurrentThreadId() const =0
control_box_rst
Author(s): Christoph Rösmann
autogenerated on Wed Mar 2 2022 00:07:06