X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FDynamicThreadPool.html;h=66ad9b5b6dc400a2edc002a84b78044da6559b57;hb=1938bc376fa92d0c773c4c23b0305291ab483e6c;hp=f61c7c4e7467b0e3651c578d461d7e65f06fbd8c;hpb=797996a92f40d5779cd31314b59462e41d529989;p=poolifier.git diff --git a/docs/classes/DynamicThreadPool.html b/docs/classes/DynamicThreadPool.html index f61c7c4e..66ad9b5b 100644 --- a/docs/classes/DynamicThreadPool.html +++ b/docs/classes/DynamicThreadPool.html @@ -42,7 +42,7 @@ When the maximum number of threads is reached, an event is emitted. If you want +
  • Defined in src/pools/thread/dynamic.ts:17
  • @@ -57,13 +57,11 @@ When the maximum number of threads is reached, an event is emitted. If you want

    Accessors

    @@ -73,19 +71,16 @@ When the maximum number of threads is reached, an event is emitted. If you want

    Methods

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

    @@ -143,7 +138,7 @@ When the maximum number of threads is reached, an event is emitted. If you want
    +
  • Defined in src/pools/abstract-pool.ts:32
  • filePath: string
    @@ -151,22 +146,14 @@ When the maximum number of threads is reached, an event is emitted. If you want
    +
  • Defined in src/pools/abstract-pool.ts:67
  • max: number

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

    -
    - -
    nextMessageId: number = 0
    -

    Id of the next message.

    -
    +
  • Defined in src/pools/thread/dynamic.ts:31
  • numberOfWorkers: number
    @@ -174,7 +161,7 @@ When the maximum number of threads is reached, an event is emitted. If you want
    +
  • Defined in src/pools/abstract-pool.ts:66
  • opts: PoolOptions<ThreadWorkerWithMessageChannel>
    @@ -182,20 +169,20 @@ When the maximum number of threads is reached, an event is emitted. If you want
    -
    - -
    promiseMap: Map<number, PromiseWorkerResponseWrapper<ThreadWorkerWithMessageChannel, Response>> = ...
    -

    The promise map.

    +
  • Defined in src/pools/abstract-pool.ts:68
  • +
    + +
    promiseResponseMap: Map<string, PromiseResponseWrapper<ThreadWorkerWithMessageChannel, Response>> = ...
    +

    The promise response map.

    -

    When we receive a message from the worker we get a map entry and resolve/reject the promise based on the message.

    +

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

    +
  • Defined in src/pools/abstract-pool.ts:42
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<ThreadWorkerWithMessageChannel, Data, Response>
    @@ -204,23 +191,15 @@ When the maximum number of threads is reached, an event is emitted. If you want
    +
  • Defined in src/pools/abstract-pool.ts:52
  • -
    workers: ThreadWorkerWithMessageChannel[] = []
    +
    workers: WorkerType<ThreadWorkerWithMessageChannel>[] = []

    {@inheritDoc}

    -
    - -
    workersTasksUsage: Map<ThreadWorkerWithMessageChannel, TasksUsage> = ...
    -

    {@inheritDoc}

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

    @@ -233,7 +212,7 @@ When the maximum number of threads is reached, an event is emitted. If you want

    Returns boolean

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

    -
    - +
    +
    +
  • Defined in src/pools/abstract-pool.ts:252
  • -
    - +
  • Defined in src/pools/thread/fixed.ts:85
  • +
    +
    +
  • Defined in src/pools/abstract-pool.ts:241
  • +
  • Defined in src/pools/abstract-pool.ts:292
  • +
  • Defined in src/pools/abstract-pool.ts:337
  • +
  • Defined in src/pools/thread/fixed.ts:78
  • +
  • Defined in src/pools/abstract-pool.ts:207
  • +
  • Defined in src/pools/thread/fixed.ts:54
  • -
    - -
    -
    - -
    -
    - +
  • Defined in src/pools/abstract-pool.ts:192
  • +
    +
    -
    - -
    +
  • Defined in src/pools/abstract-pool.ts:185
  • +
  • Defined in src/pools/abstract-pool.ts:177
  • +
  • Defined in src/pools/thread/fixed.ts:49
  • +
  • Defined in src/pools/thread/fixed.ts:70
  • +
  • Defined in src/pools/abstract-pool.ts:279
  • +
  • Defined in src/pools/thread/fixed.ts:62
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:156
  • +
  • Defined in src/pools/abstract-pool.ts:226
  • +
  • Defined in src/pools/abstract-pool.ts:366