aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/host1x/syncpoint_manager.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2022-11-29 08:55:30 -0500
committerLioncash <mathew1800@gmail.com>2022-11-29 08:55:33 -0500
commitb03305859e38b01c3530c6f2dbcc97b6b72dc8ee (patch)
treee0dc3ca4de17440858c1a46ff662372b01ea2e62 /src/video_core/host1x/syncpoint_manager.cpp
parentfa8bf5fb43cc21128af5fc7e847236b921a78839 (diff)
host1x/syncpoint_manager: Pass DeregisterAction() handle as const-ref
The handle is only compared against and not modified in any way, so we can pass it by const reference. This also allows us to mark the respective parameters for DeregisterGuestAction() and DeregisterHostAction() as const references as well.
Diffstat (limited to 'src/video_core/host1x/syncpoint_manager.cpp')
-rw-r--r--src/video_core/host1x/syncpoint_manager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/host1x/syncpoint_manager.cpp b/src/video_core/host1x/syncpoint_manager.cpp
index a44fc83d3d..8f23ce5272 100644
--- a/src/video_core/host1x/syncpoint_manager.cpp
+++ b/src/video_core/host1x/syncpoint_manager.cpp
@@ -34,7 +34,7 @@ SyncpointManager::ActionHandle SyncpointManager::RegisterAction(
}
void SyncpointManager::DeregisterAction(std::list<RegisteredAction>& action_storage,
- ActionHandle& handle) {
+ const ActionHandle& handle) {
std::unique_lock lk(guard);
// We want to ensure the iterator still exists prior to erasing it
@@ -49,11 +49,11 @@ void SyncpointManager::DeregisterAction(std::list<RegisteredAction>& action_stor
}
}
-void SyncpointManager::DeregisterGuestAction(u32 syncpoint_id, ActionHandle& handle) {
+void SyncpointManager::DeregisterGuestAction(u32 syncpoint_id, const ActionHandle& handle) {
DeregisterAction(guest_action_storage[syncpoint_id], handle);
}
-void SyncpointManager::DeregisterHostAction(u32 syncpoint_id, ActionHandle& handle) {
+void SyncpointManager::DeregisterHostAction(u32 syncpoint_id, const ActionHandle& handle) {
DeregisterAction(host_action_storage[syncpoint_id], handle);
}