Contents

lockEnqueue

Adds a chain of packets to the tail of a synchronized queue.

Declaration

virtual bool lockEnqueue(
 mbuf_tm);

Parameters

  • m:

    A chain of packets to add to the tail of the queue.

Return Value

Returns true on success, or false to indicate over-capacity and refusal to accept the packet chain provided.

Overview

Packets are not added if the size of the queue has reached its capacity. A spinlock is used to synchronize access to the queue.

See Also

Miscellaneous