X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FDynamicThreadPool.html;h=c606731b15cfc6b77e3b2c4b452a358726fbb7c0;hb=5a94e4b950eaf2234e07f87261ddea1482e839c6;hp=fa708b4b42d12141a962733b982f30918d2e3620;hpb=e83f3916315e18f3ca0c614d6ec9e064ab76c13c;p=poolifier.git diff --git a/docs/classes/DynamicThreadPool.html b/docs/classes/DynamicThreadPool.html index fa708b4b..c606731b 100644 --- a/docs/classes/DynamicThreadPool.html +++ b/docs/classes/DynamicThreadPool.html @@ -1,11 +1,13 @@ DynamicThreadPool | poolifier
-
+
@@ -18,10 +20,6 @@

This thread pool creates new threads when the others are busy, up to the maximum number of threads. When the maximum number of threads is reached, an event is emitted. If you want to listen to this event, use the pool's emitter.

-

Template

of data sent to the worker. This can only be serializable data.

- -

Template

of response of execution. This can only be serializable data.

-

Author

Alessandro Pio Ardizio

Since

0.0.1

@@ -30,9 +28,13 @@ When the maximum number of threads is reached, an event is emitted. If you want

Type Parameters

  • -

    Data = unknown

  • +

    Data = unknown

    +

    Type of data sent to the worker. This can only be serializable data.

    +
  • -

    Response = unknown

+

Response = unknown

+

Type of response of execution. This can only be serializable data.

+

Hierarchy

    @@ -40,7 +42,7 @@ When the maximum number of threads is reached, an event is emitted. If you want
    • DynamicThreadPool
+
  • Defined in src/pools/thread/dynamic.ts:17
  • @@ -54,7 +56,7 @@ When the maximum number of threads is reached, an event is emitted. If you want

    Properties

    emitter? filePath -max +max nextMessageId numberOfWorkers opts @@ -84,8 +86,6 @@ When the maximum number of threads is reached, an event is emitted. If you want getWorkerAverageTasksRunTime getWorkerIndex getWorkerRunningTasks -initWorkerTasksUsage -internalExecute internalGetBusyStatus isMain registerWorkerMessageListener @@ -100,7 +100,7 @@ When the maximum number of threads is reached, an event is emitted. If you want

    Returns DynamicThreadPool<Data, Response>

    +
  • Defined in src/pools/thread/dynamic.ts:29
  • Properties

    -
    emitter?: PoolEmitter
    -
    -

    Inherit Doc

    +
  • Defined in src/pools/abstract-pool.ts:40
  • -
    filePath: string
    -
    - +
  • Defined in src/pools/abstract-pool.ts:80
  • +
    +
    max: number
    -
    -

    Inherit Doc

    +
  • Defined in src/pools/thread/dynamic.ts:31
  • nextMessageId: number = 0
    @@ -165,19 +166,23 @@ When the maximum number of threads is reached, an event is emitted. If you want
    +
  • Defined in src/pools/abstract-pool.ts:58
  • -
    numberOfWorkers: number
    +
  • Defined in src/pools/abstract-pool.ts:79
  • -
    +
  • Defined in src/pools/abstract-pool.ts:81
  • promiseMap: Map<number, PromiseWorkerResponseWrapper<ThreadWorkerWithMessageChannel, Response>> = ...
    @@ -190,7 +195,7 @@ When the maximum number of threads is reached, an event is emitted. If you want
    +
  • Defined in src/pools/abstract-pool.ts:50
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<ThreadWorkerWithMessageChannel, Data, Response>
    @@ -199,23 +204,23 @@ When the maximum number of threads is reached, an event is emitted. If you want
    +
  • Defined in src/pools/abstract-pool.ts:65
  • workers: ThreadWorkerWithMessageChannel[] = []
    -
    -

    Inherit Doc

    +
  • Defined in src/pools/abstract-pool.ts:31
  • workersTasksUsage: Map<ThreadWorkerWithMessageChannel, TasksUsage> = ...
    -
    -

    Inherit Doc

    +
  • Defined in src/pools/abstract-pool.ts:34
  • Accessors

    @@ -223,34 +228,34 @@ When the maximum number of threads is reached, an event is emitted. If you want
    +
  • Defined in src/pools/thread/dynamic.ts:44
  • +
  • Defined in src/pools/abstract-pool.ts:151
  • +
  • Defined in src/pools/thread/dynamic.ts:39
  • Methods

    @@ -275,14 +280,14 @@ Can be overridden.

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:266
  • +
  • Defined in src/pools/thread/fixed.ts:80
  • +
  • Defined in src/pools/abstract-pool.ts:255
  • +
  • Defined in src/pools/abstract-pool.ts:293
  • +
  • Defined in src/pools/abstract-pool.ts:337
  • +
  • Defined in src/pools/thread/fixed.ts:73
  • +
  • Defined in src/pools/abstract-pool.ts:221
  • +
  • Defined in src/pools/thread/fixed.ts:49
  • +
  • Defined in src/pools/abstract-pool.ts:205
  • +
  • Defined in src/pools/abstract-pool.ts:194
  • +
  • Defined in src/pools/abstract-pool.ts:166
  • +
  • Defined in src/pools/abstract-pool.ts:156
  • -
    - -
    -
    - -
    +
  • Defined in src/pools/abstract-pool.ts:161
  • +
  • Defined in src/pools/abstract-pool.ts:186
  • +
  • Defined in src/pools/thread/fixed.ts:44
  • +
  • Defined in src/pools/abstract-pool.ts:280
  • +
  • Defined in src/pools/thread/fixed.ts:57
  • +
  • Defined in src/pools/abstract-pool.ts:171
  • +
  • Defined in src/pools/abstract-pool.ts:240
  • +
  • Defined in src/pools/abstract-pool.ts:363