@@ -275,11 +275,6 @@ var LibraryPThread = {
275
275
err ( 'Thread ' + d [ 'threadId' ] + ': ' + d [ 'text' ] ) ;
276
276
} else if ( cmd === 'alert' ) {
277
277
alert ( 'Thread ' + d [ 'threadId' ] + ': ' + d [ 'text' ] ) ;
278
- } else if ( cmd === 'detachedExit' ) {
279
- #if ASSERTIONS
280
- assert ( worker . pthread ) ;
281
- #endif
282
- PThread . returnWorkerToPool ( worker ) ;
283
278
} else if ( cmd === 'cancelDone' ) {
284
279
PThread . returnWorkerToPool ( worker ) ;
285
280
} else if ( d . target === 'setimmediate' ) {
@@ -309,7 +304,7 @@ var LibraryPThread = {
309
304
worker . on ( 'error' , function ( e ) {
310
305
worker . onerror ( e ) ;
311
306
} ) ;
312
- worker . on ( 'detachedExit ' , function ( ) {
307
+ worker . on ( 'exit ' , function ( ) {
313
308
// TODO: update the worker queue?
314
309
// See: https://github.com/emscripten-core/emscripten/issues/9763
315
310
} ) ;
@@ -838,12 +833,6 @@ var LibraryPThread = {
838
833
return 0 ;
839
834
} ,
840
835
841
- __pthread_detached_exit: function ( ) {
842
- // Called at the end of pthread_exit (which occurs also when leaving the
843
- // thread main function) if an only if the thread is in a detached state.
844
- postMessage ( { 'cmd' : 'detachedExit' } ) ;
845
- } ,
846
-
847
836
// Returns 0 on success, or one of the values -ETIMEDOUT, -EWOULDBLOCK or -EINVAL on error.
848
837
emscripten_futex_wait__deps: [ 'emscripten_main_thread_process_queued_calls' ] ,
849
838
emscripten_futex_wait : function ( addr , val , timeout ) {
0 commit comments