Skip to content

Commit b7f557c

Browse files
authored
Minor doc fixes around workers API (emscripten-core#23328)
Two very minor docs fixes: - The path "test/wasm_workers" in the workers reference is incorrect. - A comment in the header repeats "synchronisation primitives".
1 parent d679c87 commit b7f557c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

site/source/docs/api_reference/wasm_workers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,4 +402,4 @@ The following build options are not supported at the moment with Wasm Workers:
402402
Example Code
403403
============
404404

405-
See the directory ``test/wasm_workers/`` for code examples on different Wasm Workers API functionality.
405+
See the directory ``test/wasm_worker/`` for code examples on different Wasm Workers API functionality.

system/include/emscripten/wasm_worker.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ uint32_t emscripten_wasm_worker_self_id(void);
8383
// never be called.
8484
// Passing messages between threads with this family of functions is relatively
8585
// slow and has a really high latency cost compared to direct coordination using
86-
// atomics and synchronization primitives like mutexes and synchronization
87-
// primitives. Additionally these functions will generate garbage on the JS
88-
// heap. Therefore avoid using these functions where performance is critical.
86+
// atomics and synchronization primitives like mutexes. Additionally these
87+
// functions will generate garbage on the JS heap. Therefore avoid using these
88+
// functions where performance is critical.
8989
void emscripten_wasm_worker_post_function_v(emscripten_wasm_worker_t id, void (*funcPtr)(void) __attribute__((nonnull)));
9090
void emscripten_wasm_worker_post_function_vi(emscripten_wasm_worker_t id, void (*funcPtr)(int) __attribute__((nonnull)), int arg0);
9191
void emscripten_wasm_worker_post_function_vii(emscripten_wasm_worker_t id, void (*funcPtr)(int, int) __attribute__((nonnull)), int arg0, int arg1);

0 commit comments

Comments
 (0)