KsIncrementCountedWorker function (ks.h)

Increments the current worker count, and optionally queues the counted work item with the worker previously created by KsRegisterCountedWorker.

Syntax

KSDDKAPI ULONG KsIncrementCountedWorker(
  [in] PKSWORKER Worker
);

Parameters

[in] Worker

Contains the previously allocated worker.

Return value

Returns the current counter. A count of one implies that a worker was actually scheduled.

Remarks

This should be called after an addition has been made to the worker's list of tasks to perform. A corresponding call to KsDecrementCountedWorker should be made within the work item after each task has been completed. This may be called at DISPATCH_LEVEL.

Requirements

Requirement Value
Target Platform Universal
Header ks.h (include Ks.h)
Library Ks.lib

See also

KsDecrementCountedWorker

KsRegisterCountedWorker