diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2020-03-05 16:33:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-05 16:33:45 +0100 |
| commit | 42595085a5a22f3b5399844d06e89631c42e8981 (patch) | |
| tree | da1c7092d1b0960891b4634358b1150f679fa805 /core/bind/core_bind.h | |
| parent | bd553d072b65fe5359ab76e64566ff316d35c62e (diff) | |
| parent | 9a3a2b03b8b718409eb26252d742d48091756ef7 (diff) | |
| download | redot-engine-42595085a5a22f3b5399844d06e89631c42e8981.tar.gz | |
Merge pull request #36752 from RandomShaper/rework_semaphore
Drop old semaphore implementation
Diffstat (limited to 'core/bind/core_bind.h')
| -rw-r--r-- | core/bind/core_bind.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/core/bind/core_bind.h b/core/bind/core_bind.h index e7850de744..fc6419b7d8 100644 --- a/core/bind/core_bind.h +++ b/core/bind/core_bind.h @@ -635,16 +635,14 @@ public: class _Semaphore : public Reference { GDCLASS(_Semaphore, Reference); - SemaphoreOld *semaphore; + Semaphore semaphore; static void _bind_methods(); public: - Error wait(); - Error post(); - - _Semaphore(); - ~_Semaphore(); + void wait(); + Error try_wait(); + void post(); }; class _Thread : public Reference { |
