repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of github.com:jerome-benoit/poolifier
[poolifier.git]
/
src
/
pools
/
thread
/
dynamic.ts
diff --git
a/src/pools/thread/dynamic.ts
b/src/pools/thread/dynamic.ts
index 62ddba9fc4792148a47f69c51c8c6f7a01b3adb0..05b61684173af58c7ed7dbbc52218c874a35fa7a 100644
(file)
--- a/
src/pools/thread/dynamic.ts
+++ b/
src/pools/thread/dynamic.ts
@@
-28,7
+28,7
@@
export class DynamicThreadPool<
*/
public constructor (
min: number,
*/
public constructor (
min: number,
- p
rivate
readonly max: number,
+ p
ublic
readonly max: number,
filePath: string,
opts: PoolOptions<ThreadWorkerWithMessageChannel> = {}
) {
filePath: string,
opts: PoolOptions<ThreadWorkerWithMessageChannel> = {}
) {
@@
-42,11
+42,11
@@
export class DynamicThreadPool<
/** @inheritDoc */
public get full (): boolean {
/** @inheritDoc */
public get full (): boolean {
- return this.workers.length === this.max
+ return this.worker
Node
s.length === this.max
}
/** @inheritDoc */
public get busy (): boolean {
}
/** @inheritDoc */
public get busy (): boolean {
- return this.full && this.
findFreeWorkerKey() === -1
+ return this.full && this.
internalBusy()
}
}
}
}