Skip to content

Commit cfe6160

Browse files
committed
Clarify comment
1 parent 5d41318 commit cfe6160

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/library_pthread.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,10 @@ var LibraryPThread = {
190190

191191
#if ENVIRONMENT_MAY_BE_NODE
192192
if (ENVIRONMENT_IS_NODE) {
193-
// Mark the worker as weakly referenced so that its existence does
194-
// not prevent Node.js from exiting. This has no effect if the
195-
// worker is already weakly referenced.
193+
// Once a pthread has finished and the worker becomes idle, mark it
194+
// as weakly referenced so that its existence does not prevent Node.js
195+
// from exiting. This has no effect if the worker is already weakly
196+
// referenced.
196197
worker.unref();
197198
}
198199
#endif

0 commit comments

Comments
 (0)