14#ifndef BOOST_FAIRNESS_THREAD_POOL_HPP
15#define BOOST_FAIRNESS_THREAD_POOL_HPP
53 for (uint32_t i = 0; i < N; ++i){
54 if (!threads_[i].inUse_){
55 threads_[i].owner_ = owner;
63 for (uint32_t i = 0; i < N; ++i){
64 if (threads_[i].owner_ == owner){
78 std::array<Thread, N> threads_;
82 static thread_local ThreadPool<BOOST_FAIRNESS_MAX_THREADS> t_;
Definition thread_pool.hpp:47
Thread * getThread(void *const owner)
Definition thread_pool.hpp:52
Thread * reGetThread(void *const owner)
Definition thread_pool.hpp:62
void returnThread(Thread *const t)
Definition thread_pool.hpp:71
This file contains configurations about boost and 128bit cpu support. TODO.
Definition coherent_priority_lock.hpp:25
uint8_t Priority_t
Definition priority_t.hpp:17
boost::fairness::detail::pqspinlock pqspinlock
Definition priority_mutex_benchmark.hpp:20
#define BOOST_FAIRNESS_INVALID_PRIORITY
A number indicating an invalid priority which is not usable by the mutexes.
Definition priority_t.hpp:29
Definition request_pool.hpp:25
Thread * thread_
Definition request_pool.hpp:27
Definition thread_pool.hpp:24
Request * request_
Definition thread_pool.hpp:40
void prepare(Priority_t p, Request *req)
Definition thread_pool.hpp:28
void * owner_
Definition thread_pool.hpp:41
Request * watch_
Definition thread_pool.hpp:39
bool inUse_
Definition thread_pool.hpp:43
Priority_t priority_
Definition thread_pool.hpp:42