From d68ddda766fb5330619fa1b3ba25eab621f07c0a Mon Sep 17 00:00:00 2001 From: Ray Date: Tue, 2 Aug 2022 09:59:12 +0200 Subject: Added note for multi-threading web compilation --- examples/Makefile.Web | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples') diff --git a/examples/Makefile.Web b/examples/Makefile.Web index 86564429..861b3859 100644 --- a/examples/Makefile.Web +++ b/examples/Makefile.Web @@ -591,6 +591,8 @@ core/core_vr_simulator: core/core_vr_simulator.c # NOTE: To use multi-threading raylib must be compiled with multi-theading support (-s USE_PTHREADS=1) # WARNING: For security reasons multi-threading is not supported on browsers, it requires cross-origin isolation (Oct.2021) +# WARNING: It requires raylib to be compiled using -pthread, so atomic operations and thread-local data (if any) +# in its source were transformed to non-atomic operations and non-thread-local data core/core_loading_thread: core/core_loading_thread.c $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -s USE_PTHREADS=1 -- cgit v1.2.3