diff options
| author | Rémi Verschelde | 2018-03-21 17:40:01 +0100 |
|---|---|---|
| committer | GitHub | 2018-03-21 17:40:01 +0100 |
| commit | baa092e99dc0dcf39362c4ce7086ea92095f9224 (patch) | |
| tree | 9d59f39eeabc55feaae171cbb292d5bed2c64467 /core/os/thread_dummy.cpp | |
| parent | b384bf6fbccd831f597ce8342df32b57485ed656 (diff) | |
| parent | 25800ffb0e9acfe9e63608eb44979f27c33fc6c1 (diff) | |
| download | godot-baa092e99dc0dcf39362c4ce7086ea92095f9224.tar.gz godot-baa092e99dc0dcf39362c4ce7086ea92095f9224.tar.zst godot-baa092e99dc0dcf39362c4ce7086ea92095f9224.zip | |
Merge pull request #17653 from eska014/rwlock-dummy
Add RWLockDummy for NO_THREADS builds
Diffstat (limited to '')
| -rw-r--r-- | core/os/thread_dummy.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/os/thread_dummy.cpp b/core/os/thread_dummy.cpp index fa0bb3daf..b6371235c 100644 --- a/core/os/thread_dummy.cpp +++ b/core/os/thread_dummy.cpp @@ -55,3 +55,11 @@ Semaphore *SemaphoreDummy::create() { void SemaphoreDummy::make_default() { Semaphore::create_func = &SemaphoreDummy::create; }; + +RWLock *RWLockDummy::create() { + return memnew(RWLockDummy); +}; + +void RWLockDummy::make_default() { + RWLock::create_func = &RWLockDummy::create; +}; |
