Download upstream/emscripten/tools/websocket_to_posix_proxy/src/threads.h from arudradey/flst: direct link, hf CLI and curl.
- Browser
- Download file 1.38 kB
-
https://huggingface.co/arudradey/flst/resolve/main/upstream/emscripten/tools/websocket_to_posix_proxy/src/threads.h
- Command line
-
hf download hf://arudradey/flst/upstream/emscripten/tools/websocket_to_posix_proxy/src/threads.h
-
curl -L -o threads.h https://huggingface.co/arudradey/flst/resolve/main/upstream/emscripten/tools/websocket_to_posix_proxy/src/threads.h
1.38 kB
| // N.B. The mutex type MUTEX_T is NOT relocatable (on Windows)! | |
| // That means you should not move it to another memory address | |
| // after creation. | |
| inline void CREATE_MUTEX(MUTEX_T *m) { | |
| pthread_mutex_init(m, 0); | |
| } | |
| inline void CREATE_MUTEX(MUTEX_T *m) { | |
| InitializeCriticalSectionAndSpinCount(m, 0x00000400); | |
| } | |