Construct a new instance operating on the given map.
The map must be of QUEUE
or STACK
type.
Convenience function. Alias of consumeValues.
Convenience function. Consumes values repeatedly until the queue is empty.
In cases where another program is pushing things to the queue concurrently, it is recommended to place a limit to avoid loop starvation.
Convenience function. Tests if the queue is empty.
Freezes the map, making it non-modifiable from userspace. The map stays writeable from BPF side.
Since Linux 5.2.
Get the next value without removing it from the queue.
Entry value, or undefined
if the queue is empty
Consume the next value from the queue.
Entry value, or undefined
if the queue is empty
Add a new value to the queue.
Generated using TypeDoc
Raw version of the IQueueMap interface where values are returned directly as
Buffer
s.