#include <ThreadPool.h>
Definition at line 72 of file ThreadPool.h.
◆ ThreadPool()
smtrat::ThreadPool::ThreadPool |
( |
std::size_t |
maxThreads | ) |
|
|
inline |
◆ ~ThreadPool()
smtrat::ThreadPool::~ThreadPool |
( |
| ) |
|
|
inline |
◆ deleteTask()
void smtrat::ThreadPool::deleteTask |
( |
Task * |
task | ) |
|
|
inlineprivate |
◆ notify()
bool smtrat::ThreadPool::notify |
( |
std::size_t |
index | ) |
|
|
inlineprivate |
◆ runBackends()
Answer smtrat::ThreadPool::runBackends |
( |
const std::vector< Module * > & |
_modules, |
|
|
bool |
_final, |
|
|
bool |
_full, |
|
|
carl::Variable |
_objective |
|
) |
| |
- Parameters
-
_modules | |
_final | |
_full | |
_objective | |
Definition at line 55 of file ThreadPool.cpp.
◆ runTask()
void smtrat::ThreadPool::runTask |
( |
Task * |
task | ) |
|
|
private |
◆ shallBeSkipped()
bool smtrat::ThreadPool::shallBeSkipped |
( |
std::size_t |
index | ) |
|
|
inlineprivate |
◆ submitBackend()
void smtrat::ThreadPool::submitBackend |
( |
Task * |
task | ) |
|
|
private |
◆ mBackendSynchros
◆ mBackendSynchrosMutex
std::mutex smtrat::ThreadPool::mBackendSynchrosMutex |
|
private |
◆ mCounter
std::atomic<std::size_t> smtrat::ThreadPool::mCounter |
|
private |
Initialized with 1: There is always the main thread in the beginning.
Definition at line 77 of file ThreadPool.h.
◆ mMaxThreads
const std::size_t smtrat::ThreadPool::mMaxThreads |
|
private |
◆ mNumberThreads
std::atomic<std::size_t> smtrat::ThreadPool::mNumberThreads |
|
private |
Initialized with 1: There is always the main thread in the beginning.
Definition at line 79 of file ThreadPool.h.
◆ mQueue
std::priority_queue<Task*> smtrat::ThreadPool::mQueue |
|
private |
◆ mQueueMutex
std::mutex smtrat::ThreadPool::mQueueMutex |
|
private |
◆ mThreadCreationMutex
std::mutex smtrat::ThreadPool::mThreadCreationMutex |
|
private |
The documentation for this class was generated from the following files: