ThreadPool is now adhoc available.

This commit is contained in:
Christoffer Lerno
2024-09-28 13:28:32 +02:00
parent fe9e434020
commit 8e7efaae99
2 changed files with 3 additions and 1 deletions

View File

@@ -1,6 +1,8 @@
module std::thread::threadpool @if (env::POSIX || env::WIN32);
import std::thread;
// Please do not use this one in production.
fault ThreadPoolResult
{
QUEUE_FULL

View File

@@ -1,7 +1,7 @@
module std::thread::pool(<SIZE>);
import std::thread;
struct ThreadPool
struct ThreadPool @adhoc
{
Mutex mu;
QueueItem[SIZE] queue;