Construct a new instance operating on the given map.
The map must be of QUEUE
or STACK
type.
Reference to the map. See MapRef if you want to implement your own instances.
Type conversion for values
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
Implementation of IQueueMap that converts values to 'parsed' representations using the given TypeConversion.