TibrvDispatchable

Class

Declaration

class TibrvDispatchable

Purpose

Common interface for queues and queue groups.

Remarks

Programs never instantiate this class.

Both TibrvQueue and TibrvQueueGroup implement this interface, so programs can call the common methods on objects of either class. For example, consider a dispatcher routine that receives an object of type TibrvDispatchable; it can call the dispatch() method, without needing to determine whether the object is queue or a queue group.

Method

Description

Life Cycle

TibrvDispatchable::destroy()

Destroy a queue or queue group.

TibrvDispatchable::getDispatchable()

Extract the C handle of a queue or queue group.

TibrvDispatchable::isValid()

Test validity of a queue or queue group.

Dispatch

TibrvDispatchable::dispatch()

Dispatch an event; if no event is ready, block.

TibrvDispatchable::poll()

Dispatch an event, if possible.

TibrvDispatchable::timedDispatch()

Dispatch an event, but if no event is ready to dispatch, limit the time that this call blocks while waiting for an event.

Descendants

TibrvQueue

TibrvQueueGroup

See Also

TibrvQueue

TibrvQueueGroup