X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FDynamicThreadPool.html;h=b4af529190a288ff784a49a73c82034399796b2a;hb=f9f00b5f18805c14b1bac3b2e5d2e8b5abc6c66c;hp=75da6d76187e524ab93943581bb7d79a573e2b97;hpb=7cd8af0033b35def46016a78ea9be1ee516480bf;p=poolifier.git diff --git a/docs/classes/DynamicThreadPool.html b/docs/classes/DynamicThreadPool.html index 75da6d76..b4af5291 100644 --- a/docs/classes/DynamicThreadPool.html +++ b/docs/classes/DynamicThreadPool.html @@ -42,7 +42,7 @@ When the maximum number of threads is reached and workers are busy, an event is +
  • Defined in src/pools/thread/dynamic.ts:17
  • @@ -61,12 +61,13 @@ When the maximum number of threads is reached and workers are busy, an event is opts promiseResponseMap workerChoiceStrategyContext -workers +workerNodes

    Accessors

    @@ -75,17 +76,16 @@ When the maximum number of threads is reached and workers are busy, an event is
    afterPromiseResponseHook afterWorkerSetup beforePromiseResponseHook -chooseWorker +chooseWorkerNode createAndSetupWorker createWorker destroy destroyWorker execute -findFreeWorkerKey +findFreeWorkerNodeKey internalBusy isMain registerWorkerMessageListener -removeWorker sendToWorker setWorkerChoiceStrategy setupHook @@ -129,7 +129,7 @@ When the maximum number of threads is reached and workers are busy, an event is

    Returns DynamicThreadPool<Data, Response>

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

    @@ -139,7 +139,7 @@ When the maximum number of threads is reached and workers are busy, an event is

    Inherit Doc

    +
  • Defined in src/pools/abstract-pool.ts:33
  • filePath: string
    @@ -147,14 +147,14 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:68
  • max: number

    Maximum number of threads that can be created by this pool.

    +
  • Defined in src/pools/thread/dynamic.ts:31
  • numberOfWorkers: number
    @@ -162,7 +162,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:67
  • opts: PoolOptions<ThreadWorkerWithMessageChannel>
    @@ -170,20 +170,20 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:69
  • promiseResponseMap: Map<string, PromiseResponseWrapper<ThreadWorkerWithMessageChannel, Response>> = ...
    -

    The promise response map.

    +

    The execution response promise map.

    • key: The message id of each submitted task.
    • -
    • value: An object that contains the worker, the promise resolve and reject callbacks.
    • +
    • value: An object that contains the worker, the execution response promise resolve and reject callbacks.
    -

    When we receive a message from the worker we get a map entry with the promise resolve/reject bound to the message.

    +

    When we receive a message from the worker, we get a map entry with the promise resolve/reject bound to the message id.

    +
  • Defined in src/pools/abstract-pool.ts:43
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<ThreadWorkerWithMessageChannel, Data, Response>
    @@ -192,15 +192,15 @@ When the maximum number of threads is reached and workers are busy, an event is
    -
    - -
    workers: WorkerType<ThreadWorkerWithMessageChannel>[] = []
    +
  • Defined in src/pools/abstract-pool.ts:53
  • +
    + +
    workerNodes: WorkerNode<ThreadWorkerWithMessageChannel, Data>[] = []

    Inherit Doc

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

    @@ -213,7 +213,7 @@ When the maximum number of threads is reached and workers are busy, an event is

    Returns boolean

    +
  • Defined in src/pools/thread/dynamic.ts:49
  • +
  • Defined in src/pools/thread/dynamic.ts:44
  • +
    + +
    +
  • Defined in src/pools/abstract-pool.ts:156
  • +
  • Defined in src/pools/thread/dynamic.ts:39
  • Methods

    @@ -271,7 +282,7 @@ Can be overridden.

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:309
  • +
  • Defined in src/pools/thread/fixed.ts:85
  • -
    - +
  • Defined in src/pools/abstract-pool.ts:298
  • +
    +
    +
  • Defined in src/pools/abstract-pool.ts:342
  • +
  • Defined in src/pools/abstract-pool.ts:408
  • +
  • Defined in src/pools/thread/fixed.ts:78
  • +
  • Defined in src/pools/abstract-pool.ts:261
  • +
  • Defined in src/pools/thread/fixed.ts:54
  • -
    - +
  • Defined in src/pools/abstract-pool.ts:236
  • +
    +
    +
  • Defined in src/pools/abstract-pool.ts:229
  • +
  • Defined in src/pools/abstract-pool.ts:221
  • +
  • Defined in src/pools/thread/fixed.ts:49
  • -
    - -
    +
  • Defined in src/pools/thread/fixed.ts:70
  • +
  • Defined in src/pools/thread/fixed.ts:62
  • +
  • Defined in src/pools/abstract-pool.ts:189
  • +
  • Defined in src/pools/abstract-pool.ts:283
  • +
  • Defined in src/pools/abstract-pool.ts:431