Skip to content

Commit

Permalink
ThreadPool is now adhoc available.
Browse files Browse the repository at this point in the history
  • Loading branch information
lerno committed Sep 28, 2024
1 parent fe9e434 commit 8e7efaa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/std/threads/fixed_pool.c3
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/std/threads/pool.c3
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module std::thread::pool(<SIZE>);
import std::thread;

struct ThreadPool
struct ThreadPool @adhoc
{
Mutex mu;
QueueItem[SIZE] queue;
Expand Down

0 comments on commit 8e7efaa

Please sign in to comment.