diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-03-14 22:34:37 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-03-14 22:34:37 +0100 |
commit | 453485aede521b3c6d2d960bad94acc2eb90f177 (patch) | |
tree | dd7aa8b68791c8b20bce11906810b88a84293d5c /core/os/condition_variable.h | |
parent | 31acb61c16945244c2c2b61f6b3d663b40dce016 (diff) | |
parent | 9d7215e6affce6917601fd4059062a413d69a252 (diff) | |
download | redot-engine-453485aede521b3c6d2d960bad94acc2eb90f177.tar.gz |
Merge pull request #89270 from Repiteo/enforce-typename-in-templates
Enforce template syntax `typename` over `class`
Diffstat (limited to 'core/os/condition_variable.h')
-rw-r--r-- | core/os/condition_variable.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/os/condition_variable.h b/core/os/condition_variable.h index 2b6b272e18..fa1355e98c 100644 --- a/core/os/condition_variable.h +++ b/core/os/condition_variable.h @@ -54,7 +54,7 @@ class ConditionVariable { mutable THREADING_NAMESPACE::condition_variable condition; public: - template <class BinaryMutexT> + template <typename BinaryMutexT> _ALWAYS_INLINE_ void wait(const MutexLock<BinaryMutexT> &p_lock) const { condition.wait(const_cast<THREADING_NAMESPACE::unique_lock<THREADING_NAMESPACE::mutex> &>(p_lock.lock)); } @@ -72,7 +72,7 @@ public: class ConditionVariable { public: - template <class BinaryMutexT> + template <typename BinaryMutexT> void wait(const MutexLock<BinaryMutexT> &p_lock) const {} void notify_one() const {} void notify_all() const {} |