Crate pid_allocator
source ·Structs§
- A handle to an allocated PID. When dropped, the PID is automatically recycled back into the allocator.
- A thread-safe PID allocator that can allocate and recycle PIDs efficiently. It encapsulates the allocator’s state within an
Arc<SpinMutex<...>>
to allow safe shared access across threads. - The internal state of the PID allocator, containing the layers of available PIDs.