Rename PThreadinitMainThreadBlock => PThread.prepareMainThread for clarity
diff --git a/src/library_pthread.js b/src/library_pthread.js index 7a84f87..93b83ba 100644 --- a/src/library_pthread.js +++ b/src/library_pthread.js
@@ -5,7 +5,7 @@ */ var LibraryPThread = { - $PThread__postset: 'if (!ENVIRONMENT_IS_PTHREAD) PThread.initMainThreadBlock();', + $PThread__postset: 'if (!ENVIRONMENT_IS_PTHREAD) PThread.prepareMainThread();', $PThread__deps: ['$registerPthreadPtr', '$ERRNO_CODES', 'emscripten_futex_wake', '$killThread', '$cancelThread', '$cleanupThread', @@ -33,7 +33,9 @@ // Stores the memory address that the main thread is waiting on, if any. If // the main thread is waiting, we wake it up before waking up any workers. // mainThreadFutex: undefined, - initMainThreadBlock: function() { + + // Runs during startup to prepare the main thread. + prepareMainThread: function() { #if ASSERTIONS assert(!ENVIRONMENT_IS_PTHREAD); #endif