eve.core.windows.slots

Slot allocator for the Windows event loop.

This module provides capacity normalization and token packing utilities used by the Windows event loop watcher slot management.

Functions 6

fnsize_t normalizedWatcherCapacity(size_t requested) pure @safe nothrow @nogcNormalize a requested watcher capacity to a sensible minimum.
fnsize_t normalizedEventCapacity(size_t requested) pure @safe nothrow @nogcNormalize a requested event capacity to a sensible minimum.
fnsize_t normalizedDnsCapacity(size_t requested) pure @safe nothrow @nogcNormalize a DNS capacity value (no minimum enforced).
fnuint nextGeneration(uint generation) pure @safe nothrow @nogcAdvance a generation counter, skipping zero.
fnulong packToken(Token token) pure @safe nothrow @nogcPack a token into a 64-bit value for use as IOCP completion key.
fnToken unpackToken(ulong userData) pure @safe nothrow @nogcUnpack a 64-bit IOCP completion key into a token.