mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 08:00:15 +02:00
SignalScopeGuards: Mark template function helpers as inline
Fixes -Wunused-template warnings.
This commit is contained in:
1 parent
2158309c51
commit
de16c18961
1 file changed
+3
-3
@@ -250,19 +250,19 @@ public:
|
||||
|
||||
template<template<typename> 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<MutexType> {mutex};
|
||||
}
|
||||
|
||||
template<template<typename> 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<MutexType> {mutex};
|
||||
}
|
||||
|
||||
template<template<typename> 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<MutexType> {mutex};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user