MatchingCoordinatorTInput, TCategory, TWorkStub, TWorkDescription, TWorkerDescriptionAssignWork Method Naiad Help

[This is preliminary documentation and is subject to change.]

Implements ICoordinator.AssignWork. Given a worker that is now free, assign it a work item if any remain. If there is an item matching the worker it will be returned; otherwise if there is an item that wasn't matched to any worker it will be returned; otherwise an item from another category's queue that has a maximal number of pending items will be returned. If there are no items remaining to be assigned, this returns false.

Namespace: Microsoft.Research.Naiad.Frameworks.WorkGenerator
Assembly: Microsoft.Research.Naiad.WorkGenerator (in Microsoft.Research.Naiad.WorkGenerator.dll) Version: 0.5.0.0 (0.5.0.0)
Syntax

C#
public bool AssignWork(
	TWorkerDescription worker,
	ref TWorkDescription work
)

Parameters

worker
Type: TWorkerDescription
The worker that needs work
work
Type: TWorkDescription
The work item to be assigned if any

Return Value

Type: Boolean
True if any items remained, false otherwise

Implements

ICoordinatorTInput, TWorkDescription, TWorkerDescriptionAssignWork(TWorkerDescription, TWorkDescription)
See Also

Reference