We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e002856 commit f1293d5Copy full SHA for f1293d5
README.md
@@ -147,6 +147,16 @@ WASI host must:
147
A WASI host that implements the above should be able to spawn threads for a
148
variety of languages.
149
150
+### TID (thread ID)
151
+
152
+TID is a 32-bit integer provided by the host to identify threads created
153
+with `wasi_thread_spawn`.
154
155
+* TID 0 is reserved. `wasi_thread_spawn` should not return this value.
156
157
+* The upper-most 3-bits of TID are always 0.
158
+ `wasi_thread_spawn` should not return values with these bits set.
159
160
#### Design choice: pthreads
161
162
One of the goals of this API is to be able to support `pthreads` for C compiled
0 commit comments