refactor(core): Rename HUB_OTHER lock rank to INSTANCE_DEVICES

This commit is contained in:
Andy Leiserson committed 2026-08-14 18:59:00 -07:00
1 parent 5e7afdf25b
commit 0770264ea0
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -42,7 +42,7 @@ impl Default for InstanceDevices {
impl InstanceDevices {
pub(crate) fn new() -> Self {
Self(Mutex::new(rank::HUB_OTHER, WeakVec::new()))
Self(Mutex::new(rank::INSTANCE_DEVICES, WeakVec::new()))
}
pub(crate) fn push(&self, device: &Arc<Device>) {
+3 -3
View File
@@ -113,7 +113,7 @@ define_lock_ranks! {
BUFFER_POOL,
DEVICE_TRACE,
DEVICE_USAGE_SCOPES,
HUB_OTHER,
INSTANCE_DEVICES,
SHARED_TRACKER_INDEX_ALLOCATOR_INNER,
}
rank DEVICE_SNATCHABLE_LOCK "Device::snatchable_lock" followed by {
@@ -128,7 +128,7 @@ define_lock_ranks! {
BUFFER_POOL,
DEVICE_TRACE,
DEVICE_USAGE_SCOPES,
HUB_OTHER,
INSTANCE_DEVICES,
SHARED_TRACKER_INDEX_ALLOCATOR_INNER,
TEXTURE_BIND_GROUPS,
TEXTURE_CLEAR_MODE,
@@ -175,7 +175,7 @@ define_lock_ranks! {
rank COMMAND_ALLOCATOR_FREE_ENCODERS "CommandAllocator::free_encoders" followed by {
SHARED_TRACKER_INDEX_ALLOCATOR_INNER,
}
rank HUB_OTHER "Hub (general)" followed by {
rank INSTANCE_DEVICES "InstanceDevices" followed by {
}
// Leaf ranks reachable from the graph above, alphabetical.