mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
ThreadPool is now adhoc available.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
module std::thread::pool(<SIZE>);
|
||||
import std::thread;
|
||||
|
||||
struct ThreadPool
|
||||
struct ThreadPool @adhoc
|
||||
{
|
||||
Mutex mu;
|
||||
QueueItem[SIZE] queue;
|
||||
|
||||
Reference in New Issue
Block a user