File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ See docs/process.md for how version tagging works.
17
17
18
18
Current Trunk
19
19
-------------
20
+ - Removed preamble variable ENVIRONMENT_IS_PTHREAD. Use the variable
21
+ ENVIRONMENT_IS_WORKER instead to detect code that is running in a pthread.
20
22
- All ports now install their headers into a shared directory under
21
23
` EM_CACHE ` . This should not really be a user visible change although one
22
24
side effect is that once a give ports is built its headers are then
Original file line number Diff line number Diff line change @@ -19,7 +19,11 @@ void EMSCRIPTEN_KEEPALIVE FinishTest(int result)
19
19
void TestAsyncRunScript ()
20
20
{
21
21
// 5. Test emscripten_async_run_script() runs in a worker.
22
+ #if __EMSCRIPTEN_PTHREADS__
23
+ emscripten_async_run_script (" Module['_FinishTest'](ENVIRONMENT_IS_WORKER);" , 1 );
24
+ #else
22
25
emscripten_async_run_script (" Module['_FinishTest'](!ENVIRONMENT_IS_WORKER);" , 1 );
26
+ #endif
23
27
}
24
28
25
29
void AsyncScriptLoaded ()
You can’t perform that action at this time.
0 commit comments