tibrvcmTransport_SetWorkerWeight()
Function
Declaration
tibrv_statustibrvcmTransport_SetWorkerWeight(
tibrvcmTransport cmTransport,
tibrv_u32 workerWeight);
Purpose
Set the worker weight of a distributed queue transport.
Remarks
Relative worker weights assist the scheduler in assigning tasks. When the scheduler receives a task, it assigns the task to the available worker with the greatest worker weight.
The default worker weight is 1; programs can set this parameter at creation using tibrvcmTransport_CreateDistributedQueue(), or change it dynamically using this function.
|
Parameter |
Description |
|
|
Set the worker weight of this distributed queue transport. |
|
|
Use this worker weight. |
See Also
Distributed Queue, in