eve.core.linux.slots
Watcher slot pool for the Linux event loop.
This module provides free-list-based slot allocation, token management, and slot lookup for the Linux EventLoop. It operates on a generic Slot type that must expose certain metadata fields (kind, flags, generation, handle, interest, nextFree, registrationSeq).
By parameterizing on the concrete slot type, this module avoids a circular dependency on the full EventLoop definition.
struct SlotPool
Types 1
structSlotPool(Slot)
Free-list-based watcher slot pool.
Manages a contiguous array of watcher slots with O(1) allocate and release operations. Each slot carries a generation counter that is incorporated into tokens to detect stale references after release.
Parameters
Slot | Struct type with at minimum fields: kind, flags, generation, handle, interest, cancelToken, nextFree, registrationSeq. |
Fields
Slot[] slotsuint freeHeadsize_t watcherCountulong registrationSeqMethods