Skip to content

Commit 243329e

Browse files
committed
Fix typos
1 parent 86cfdca commit 243329e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/utils/thread.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ export class ThreadPool {
2929
this.poolSize = poolSize;
3030
// task queue
3131
this.taskQueue = [];
32-
// lsit of available threads
32+
// list of available threads
3333
this.freeThreads = [];
3434
// create 'poolSize' number of worker threads
3535
for (let i = 0; i < poolSize; ++i) {
3636
this.freeThreads.push(new WorkerThread(this));
3737
}
38-
// list of running threads (unsed in abort)
38+
// list of running threads (used in abort)
3939
this.runningThreads = [];
4040
}
4141

@@ -54,7 +54,7 @@ export class ThreadPool {
5454
if (this.freeThreads.length > 0) {
5555
// get the first free worker thread
5656
const workerThread = this.freeThreads.shift();
57-
// add the thread to the runnning list
57+
// add the thread to the running list
5858
this.runningThreads.push(workerThread);
5959
// run the input task
6060
workerThread.run(workerTask);

0 commit comments

Comments
 (0)