diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-10-03 10:57:36 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-10-03 11:23:26 +0200 |
commit | 54418ea659061edccdf1ac16470505542dcc33f9 (patch) | |
tree | cf48aba0b9b73277b1ccc01b914646d49881f2a3 /core/os/rw_lock.h | |
parent | d331b803b8e63b0dab406a12c21805a17ee0a6a8 (diff) |
Remove NO_THREADS fallback code, Godot 4 requires thread support
This also removes `OS::can_use_threads` from the public API since it's always
true.
Diffstat (limited to 'core/os/rw_lock.h')
-rw-r--r-- | core/os/rw_lock.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/core/os/rw_lock.h b/core/os/rw_lock.h index a046f474ea..d3206547c7 100644 --- a/core/os/rw_lock.h +++ b/core/os/rw_lock.h @@ -33,8 +33,6 @@ #include "core/error/error_list.h" -#if !defined(NO_THREADS) - #include <shared_mutex> class RWLock { @@ -72,21 +70,6 @@ public: } }; -#else - -class RWLock { -public: - void read_lock() const {} - void read_unlock() const {} - Error read_try_lock() const { return OK; } - - void write_lock() {} - void write_unlock() {} - Error write_try_lock() { return OK; } -}; - -#endif - class RWLockRead { const RWLock &lock; |