Commit af33a1e
committed
Define primitive lock type for WASI
WASI without `_runtime(multithreaded)` does not support locks. This
commit defines the underlying lock type as `Void` in this case.
`ManagedBuffer<T, Void>` just wastes a word of storage space, so it's
not optimal but it's good at code sharing across platforms.1 parent 8ab148a commit af33a1e
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
0 commit comments