diff --git a/FEXCore/include/FEXCore/Utils/SignalScopeGuards.h b/FEXCore/include/FEXCore/Utils/SignalScopeGuards.h index 6589cf2d3..9616a6ed0 100644 --- a/FEXCore/include/FEXCore/Utils/SignalScopeGuards.h +++ b/FEXCore/include/FEXCore/Utils/SignalScopeGuards.h @@ -250,19 +250,19 @@ public: template class LockType = std::unique_lock, typename MutexType> [[nodiscard]] -static auto MaskSignalsAndLockMutex(MutexType& mutex, uint64_t Mask = ~0ULL) { +static inline auto MaskSignalsAndLockMutex(MutexType& mutex, uint64_t Mask = ~0ULL) { return LockType {mutex}; } template class LockType = std::unique_lock, typename MutexType> [[nodiscard]] -static auto GuardSignalDeferringSection(MutexType& mutex, FEXCore::Core::InternalThreadState* Thread, uint64_t Mask = ~0ULL) { +static inline auto GuardSignalDeferringSection(MutexType& mutex, FEXCore::Core::InternalThreadState* Thread, uint64_t Mask = ~0ULL) { return LockType {mutex}; } template class LockType = std::unique_lock, typename MutexType> [[nodiscard]] -static auto GuardSignalDeferringSectionWithFallback(MutexType& mutex, FEXCore::Core::InternalThreadState* Thread, uint64_t Mask = ~0ULL) { +static inline auto GuardSignalDeferringSectionWithFallback(MutexType& mutex, FEXCore::Core::InternalThreadState* Thread, uint64_t Mask = ~0ULL) { return LockType {mutex}; }