yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

syncpoint_manager: Mark IsSyncpointAllocated() as const

This doesn't modify class state at all.
This commit is contained in:
Lioncash 2022-11-28 16:08:18 -05:00
parent d0883027d6
commit 7a329ae56c
2 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@ void SyncpointManager::FreeSyncpoint(u32 id) {
syncpoint.reserved = false;
}
bool SyncpointManager::IsSyncpointAllocated(u32 id) {
bool SyncpointManager::IsSyncpointAllocated(u32 id) const {
return (id <= SyncpointCount) && syncpoints[id].reserved;
}
@ -72,7 +72,7 @@ bool SyncpointManager::HasSyncpointExpired(u32 id, u32 threshold) const {
if (!syncpoint.reserved) {
ASSERT(false);
return 0;
return false;
}
// If the interface manages counters then we don't keep track of the maximum value as it handles

View File

@ -44,7 +44,7 @@ public:
/**
* @brief Checks if the given syncpoint is both allocated and below the number of HW syncpoints
*/
bool IsSyncpointAllocated(u32 id);
bool IsSyncpointAllocated(u32 id) const;
/**
* @brief Finds a free syncpoint and reserves it