zig/lib/std/Thread
Luuk de Gram e06ab1b010
std: implement detach for WASI-threads
When a thread is detached from the main thread, we automatically
cleanup any allocated memory. For this we first reset the stack-pointer
to the original stack-pointer of the main-thread so we can safely clear
the memory which also contains the thread's stack.
2023-06-26 20:00:58 +02:00
..
Condition.zig std: prevent random CI failures 2023-06-20 10:56:23 -07:00
Futex.zig std: implement detach for WASI-threads 2023-06-26 20:00:58 +02:00
Mutex.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
Pool.zig zig build: add a -j<N> option for limiting concurrency 2023-03-15 10:48:12 -07:00
ResetEvent.zig update std lib and compiler sources to new for loop syntax 2023-02-18 19:17:21 -07:00
RwLock.zig update std lib and compiler sources to new for loop syntax 2023-02-18 19:17:21 -07:00
Semaphore.zig update std lib and compiler sources to new for loop syntax 2023-02-18 19:17:21 -07:00
WaitGroup.zig extract ThreadPool and WaitGroup from compiler to std lib 2023-03-15 10:48:12 -07:00