flst / upstream /emscripten /test /wasm_worker /shared_memory.c
arudradey's picture
Upload folder using huggingface_hub
00df61d verified
Raw
History Blame Contribute Delete
185 Bytes
#include <emscripten.h>
#include <stdio.h>
int main() {
int is_shared = EM_ASM_INT(return wasmMemory.buffer instanceof SharedArrayBuffer);
printf("%d\n", is_shared);
return 0;
}