mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Add optional count argument to Sempahore::post
Co-authored-by: RandomShaper <RandomShaper@users.noreply.github.com> Co-authored-by: A Thousand Ships (she/her) <96648715+AThousandShips@users.noreply.github.com> Co-authored-by: Mickeon <Mickeon@users.noreply.github.com>
This commit is contained in:
@@ -390,12 +390,17 @@ class Semaphore : public RefCounted {
|
||||
GDCLASS(Semaphore, RefCounted);
|
||||
::Semaphore semaphore;
|
||||
|
||||
protected:
|
||||
static void _bind_methods();
|
||||
#ifndef DISABLE_DEPRECATED
|
||||
void _post_bind_compat_93605();
|
||||
static void _bind_compatibility_methods();
|
||||
#endif // DISABLE_DEPRECATED
|
||||
|
||||
public:
|
||||
void wait();
|
||||
bool try_wait();
|
||||
void post();
|
||||
void post(int p_count = 1);
|
||||
};
|
||||
|
||||
class Thread : public RefCounted {
|
||||
|
||||
Reference in New Issue
Block a user