#include "Stroika/Foundation/StroikaPreComp.h"#include <list>#include <mutex>#include "Stroika/Foundation/Containers/Collection.h"#include "Stroika/Foundation/Execution/Function.h"#include "Stroika/Foundation/Execution/Thread.h"#include "Stroika/Foundation/Execution/WaitableEvent.h"#include "ThreadPool.inl"Go to the source code of this file.
Classes | |
| class | Stroika::Foundation::Execution::ThreadPool |
| struct | Stroika::Foundation::Execution::ThreadPool::QMax |
| struct | Stroika::Foundation::Execution::ThreadPool::Statistics |
Namespaces | |
| namespace | Stroika::Foundation |
| namespace | Stroika::Foundation::Execution |
TODO:
For example, if you had 3 threads in the pool, and 5 thread groups, then typically one or more thread groups would be idle. The thread groups give you lockless execution, and the threadpool lets the 5 groups run 'at the same time' on only 3 threads.
Definition in file ThreadPool.h.