aboutsummaryrefslogtreecommitdiff
path: root/src/library_sdl.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-10-31 09:56:18 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-10-31 09:56:18 -0700
commit338a09e189b73b17cce734eb8e53a96a72367fb8 (patch)
tree3b4b44d73076e884888602ef1a877a6cdcda6dca /src/library_sdl.js
parent4b94e181cb4ff08b26264c34ed6818f5a3fd2225 (diff)
warn in SDL_CreateThread about the problem with SDL threads
Diffstat (limited to 'src/library_sdl.js')
-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.'
}
};