@@ -539,6 +539,7 @@ var LibraryPThread = {
539539 worker . pthread_ptr = 0 ;
540540 } ,
541541
542+ __emscripten_thread_cleanup__sig : 'vp ',
542543 __emscripten_thread_cleanup : function ( thread ) {
543544 // Called when a thread needs to be cleaned up so it can be reused.
544545 // A thread is considered reusable when it either returns from its
@@ -708,7 +709,7 @@ var LibraryPThread = {
708709 // allocations from __pthread_create_js we could also remove this.
709710 __pthread_create_js__noleakcheck : true ,
710711#endif
711- __pthread_create_js__sig : 'iiiii ' ,
712+ __pthread_create_js__sig : 'ipppp ' ,
712713 __pthread_create_js__deps : [ '$spawnThread' , 'pthread_self' , '$pthreadCreateProxied' ,
713714#if OFFSCREENCANVAS_SUPPORT
714715 'malloc' ,
@@ -975,6 +976,7 @@ var LibraryPThread = {
975976
976977 emscripten_receive_on_main_thread_js_callArgs : '= [ ] ',
977978
979+ emscripten_receive_on_main_thread_js__sig : 'diip ',
978980 emscripten_receive_on_main_thread_js__deps : [
979981 'emscripten_proxy_to_main_thread_js' ,
980982 'emscripten_receive_on_main_thread_js_callArgs' ] ,
@@ -1078,7 +1080,7 @@ var LibraryPThread = {
10781080 // *ThreadMain(void *arg) form, or try linking with the Emscripten linker
10791081 // flag -sEMULATE_FUNCTION_POINTER_CASTS to add in emulation for this x86
10801082 // ABI extension.
1081- var result = { { { makeDynCall ( 'ii ' , 'ptr' ) } } } ( arg ) ;
1083+ var result = { { { makeDynCall ( 'pp ' , 'ptr' ) } } } ( arg ) ;
10821084#if STACK_OVERFLOW_CHECK
10831085 checkStackCookie ( ) ;
10841086#endif
@@ -1097,6 +1099,7 @@ var LibraryPThread = {
10971099 } ,
10981100
10991101#if MAIN_MODULE
1102+ _emscripten_thread_exit_joinable__sig : 'vp ',
11001103 _emscripten_thread_exit_joinable : function ( thread ) {
11011104 // Called when a thread exits and is joinable. We mark these threads
11021105 // as finished, which means that are in state where are no longer actually
@@ -1207,6 +1210,7 @@ var LibraryPThread = {
12071210 } ,
12081211
12091212 _emscripten_notify_task_queue__deps : [ '$executeNotifiedProxyingQueue' ] ,
1213+ _emscripten_notify_task_queue__sig : 'vpppp' ,
12101214 _emscripten_notify_task_queue : function ( targetThreadId , currThreadId , mainThreadId , queue ) {
12111215 if ( targetThreadId == currThreadId ) {
12121216 setTimeout ( ( ) => executeNotifiedProxyingQueue ( queue ) ) ;
0 commit comments