Resident Slot Pool#
-
class ResidentSlotPool#
Runtime-thread ownership of a fixed resident-state pool. The caller must not release a slot until every CUDA operation that can access that resident row has completed. Release invalidates the identity before returning the slot to the free list, so delayed host completions cannot commit into a later request that reused the same row.
Public Functions
-
ResidentSlotPool() = default#
-
explicit ResidentSlotPool(int32_t capacity)#
-
void reset(int32_t capacity)#
-
std::optional<ResidentRef> acquire()#
-
bool release(ResidentRef resident)#
-
bool contains(ResidentRef resident) const noexcept#
-
int32_t capacity() const noexcept#
-
int32_t available() const noexcept#
-
ResidentSlotPool() = default#