Skip to content

Commit 96160f9

Browse files
committed
s/onThreadExit/runExitHandlersAndDeinitThread/g
1 parent bb07cde commit 96160f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/library_pthread.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ var LibraryPThread = {
178178
if (ENVIRONMENT_IS_PTHREAD && _pthread_self()) ___pthread_tsd_run_dtors();
179179
},
180180

181-
onThreadExit: function(tb, exitCode) {
181+
runExitHandlersAndDeinitThread: function(tb, exitCode) {
182182
// Disable all cancellation so that executing the cleanup handlers won't trigger another JS
183183
// canceled exception to be thrown.
184184
Atomics.store(HEAPU32, (tb + {{{ C_STRUCTS.pthread.canceldisable }}} ) >> 2, 1/*PTHREAD_CANCEL_DISABLE*/);
@@ -209,7 +209,7 @@ var LibraryPThread = {
209209
Atomics.store(HEAPU32, (tb + {{{ C_STRUCTS.pthread.profilerBlock }}} ) >> 2, 0);
210210
_free(profilerBlock);
211211
#endif
212-
PThread.onThreadExit(tb, exitCode);
212+
PThread.runExitHandlersAndDeinitThread(tb, exitCode);
213213

214214
if (ENVIRONMENT_IS_PTHREAD) {
215215
// Note: in theory we would like to return any offscreen canvases back to the main thread,
@@ -221,7 +221,7 @@ var LibraryPThread = {
221221

222222
threadCancel: function() {
223223
var tb = _pthread_self();
224-
PThread.onThreadExit(tb, -1/*PTHREAD_CANCELED*/);
224+
PThread.runExitHandlersAndDeinitThread(tb, -1/*PTHREAD_CANCELED*/);
225225
postMessage({ 'cmd': 'cancelDone' });
226226
},
227227

0 commit comments

Comments
 (0)