Module allocator

Source

Structs§

Pid
A handle to an allocated PID. When dropped, the PID is automatically recycled back into the allocator.
PidAllocator
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. This design ensures that PIDs can be allocated and recycled from multiple threads without data races or consistency issues.