Files
Seele/src/Engine/ThreadPool.cpp
T

20 lines
350 B
C++
Raw Normal View History

2021-10-12 14:20:30 +02:00
#include "ThreadPool.h"
using namespace Seele;
static ThreadPool gThreadPool;
Job JobPromise::get_return_object() noexcept {
return Job { std::coroutine_handle<JobPromise>::from_promise(*this) };
}
ThreadPool::ThreadPool(uint32 threadCount)
: workers(threadCount)
{
}
static ThreadPool& getGlobalThreadPool()
{
return gThreadPool;
}