Monado OpenXR Runtime
|
Wrapper around u_worker_thread_pool. More...
#include <util/u_worker.hpp>
Public Member Functions | |
SharedThreadPool (SharedThreadPool const ©) | |
SharedThreadPool (u_worker_thread_pool *uwtp) | |
Take a C thread pool as argument in case the pool is shared between different C++ components over C interfaces, or created externally. More... | |
SharedThreadPool (uint32_t starting_worker_count, uint32_t thread_count, const char *prefix) | |
Creates a new thread pool to be used by a worker group. More... | |
SharedThreadPool & | operator= (const SharedThreadPool &other) |
SharedThreadPool (SharedThreadPool &&)=delete | |
SharedThreadPool & | operator= (SharedThreadPool &&)=delete |
Data Fields | |
friend | SharedThreadGroup |
Wrapper around u_worker_thread_pool.
|
inlineexplicit |
Take a C thread pool as argument in case the pool is shared between different C++ components over C interfaces, or created externally.
References u_worker_thread_pool_reference().
|
inline |
Creates a new thread pool to be used by a worker group.
starting_worker_count | How many worker threads can be active at the same time without any "donated" threads. |
thread_count | The number of threads to be created in total, this is the maximum threads that can be in flight at the same time. |
prefix | Prefix to used when naming threads, used for tracing and debugging. |
References u_worker_thread_pool_create().