aboutsummaryrefslogtreecommitdiff
path: root/lib/std/json/stringify_test.zig
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2023-06-21 21:44:53 +0200
committerLuuk de Gram <luuk@degram.dev>2023-06-26 20:00:57 +0200
commit834609038c83e0122b506fadfa38b9acb7ee9068 (patch)
treeb738876952e39d484ddb642a28ce4763c4771098 /lib/std/json/stringify_test.zig
parent10bf58b2db0e340137228f706ee2e8a67b46a892 (diff)
downloadzig-834609038c83e0122b506fadfa38b9acb7ee9068.tar.gz
zig-834609038c83e0122b506fadfa38b9acb7ee9068.zip
std: implement `join` for WASI-threads
We now reset the Thread ID to 0 and wake up the main thread listening for the thread to finish. We use inline assembly as we cannot use the stack to set the thread ID as it could possibly clobber any of the memory. Currently, we leak the memory that was allocated for the thread. We need to implement a way where we can clean up the memory without using the stack (as the stack is stored inside this same memory).
Diffstat (limited to 'lib/std/json/stringify_test.zig')
0 files changed, 0 insertions, 0 deletions