File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments