aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/library_sdl.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/library_sdl.js b/src/library_sdl.js
index 56f6a6ef..4cb4ca6f 100644
--- a/src/library_sdl.js
+++ b/src/library_sdl.js
@@ -1547,6 +1547,10 @@ var LibrarySDL = {
SDL_RemoveTimer: function(id) {
window.clearTimeout(id);
return true;
+ },
+
+ SDL_CreateThread: function() {
+ throw 'SDL threads cannot be supported in the web platform because they assume shared state. See emscripten_create_worker etc. for a message-passing concurrency model that does let you run code in another thread.'
}
};