diff --git a/emcc.py b/emcc.py index f8f386a8352fd..3a497c107d16d 100755 --- a/emcc.py +++ b/emcc.py @@ -1951,7 +1951,6 @@ def default_setting(name, new_default): '__emscripten_thread_init', '__emscripten_thread_exit', '_emscripten_tls_init', - '_emscripten_futex_wake', '_emscripten_current_thread_process_queued_calls', '_pthread_self', ] diff --git a/src/library_pthread.js b/src/library_pthread.js index fb709b01ad82c..1371e1b0c9635 100644 --- a/src/library_pthread.js +++ b/src/library_pthread.js @@ -7,7 +7,7 @@ var LibraryPThread = { $PThread__postset: 'if (!ENVIRONMENT_IS_PTHREAD) PThread.initMainThreadBlock();', $PThread__deps: ['_emscripten_thread_init', - 'emscripten_futex_wake', '$killThread', + '$killThread', '$cancelThread', '$cleanupThread', '$zeroMemory', '_emscripten_thread_free_data', 'exit', diff --git a/src/worker.js b/src/worker.js index 87040c2098d66..865eecb974abd 100644 --- a/src/worker.js +++ b/src/worker.js @@ -237,16 +237,6 @@ self.onmessage = function(e) { #endif } catch(ex) { if (ex != 'unwind') { -#if ASSERTIONS - // FIXME(sbc): Figure out if this is still needed or useful. Its not - // clear to me how this check could ever fail. In order to get into - // this try/catch block at all we have already called bunch of - // functions on `Module`.. why is this one special? - if (typeof(Module['_emscripten_futex_wake']) !== 'function') { - err("Thread Initialisation failed."); - throw ex; - } -#endif // ExitStatus not present in MINIMAL_RUNTIME #if !MINIMAL_RUNTIME if (ex instanceof Module['ExitStatus']) {