Expand Minimize

KsIncrementCountedWorker function

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

Syntax


ULONG KsIncrementCountedWorker(
  _In_ PKSWORKER Worker
);

Parameters

Worker [in]

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

Target platform

Universal

Header

Ks.h (include Ks.h)

Library

Ks.lib

See also

KsDecrementCountedWorker
KsRegisterCountedWorker

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft