tibrvQueue_SetPriority()

Function

Declaration

tibrv_status tibrvQueue_SetPriority(
    tibrvQueue       eventQueue,
    tibrv_u32        priority);

Purpose

Set the priority of a queue.

Remarks

Each queue has a single priority value, which controls its dispatch precedence within queue groups. Higher values dispatch before lower values; queues with equal priority values dispatch in round-robin fashion.

Changing the priority of a queue affects its position in all the queue groups that contain it.

Parameter

Description

eventQueue

Set the priority of this queue.

priority

Replace the priority of the queue with this new value.

The priority is a non-negative integer. Priority zero signifies the last queue to dispatch.

See Also

tibrvQueue_GetPriority()

tibrvQueueGroup_Dispatch()