aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/host1x/syncpoint_manager.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2022-11-29 18:45:05 -0500
committerGitHub <noreply@github.com>2022-11-29 18:45:05 -0500
commit1a6785d296e01e5d4bed2101af62aa15f1f8c87f (patch)
tree8ebe3644daa9e42f9931e646747cff8afb1c7bf8 /src/video_core/host1x/syncpoint_manager.cpp
parent55a3cbfa0db011afa3ad8dd93741dbe87baddab7 (diff)
parentb6d93b2c778133819aebb2baf6083a1ba0440891 (diff)
Merge pull request #9354 from lioncash/const-param
host1x/syncpoint_manager: Pass DeregisterAction() handle as const-ref
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 a44fc83d3..8f23ce527 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);
}