summaryrefslogtreecommitdiffstats
path: root/core/bind/core_bind.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-03-05 16:33:45 +0100
committerGitHub <noreply@github.com>2020-03-05 16:33:45 +0100
commit42595085a5a22f3b5399844d06e89631c42e8981 (patch)
treeda1c7092d1b0960891b4634358b1150f679fa805 /core/bind/core_bind.h
parentbd553d072b65fe5359ab76e64566ff316d35c62e (diff)
parent9a3a2b03b8b718409eb26252d742d48091756ef7 (diff)
downloadredot-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.h10
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 {