aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2023-06-23 19:14:55 +0200
committerLuuk de Gram <luuk@degram.dev>2023-06-26 20:00:58 +0200
commite06ab1b0107e8a6a1720703a6df0f61f535b5e5a (patch)
tree822263fe88040667a7482175c703f7e40dad8e86 /src/Compilation.zig
parent622b7c47468bc4508f4cfe840e0f8c51b54949dd (diff)
downloadzig-e06ab1b0107e8a6a1720703a6df0f61f535b5e5a.tar.gz
zig-e06ab1b0107e8a6a1720703a6df0f61f535b5e5a.zip
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.
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions