mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
dync classref with current source
This commit is contained in:
@@ -14,7 +14,7 @@ Semaphore
|
||||
Brief Description
|
||||
-----------------
|
||||
|
||||
A synchronization Semaphore.
|
||||
A synchronization semaphore.
|
||||
|
||||
Methods
|
||||
-------
|
||||
@@ -28,7 +28,7 @@ Methods
|
||||
Description
|
||||
-----------
|
||||
|
||||
A synchronization Semaphore. Element used to synchronize multiple :ref:`Thread<class_Thread>`\ s. Initialized to zero on creation. Be careful to avoid deadlocks. For a binary version, see :ref:`Mutex<class_Mutex>`.
|
||||
A synchronization semaphore which can be used to synchronize multiple :ref:`Thread<class_Thread>`\ s. Initialized to zero on creation. Be careful to avoid deadlocks. For a binary version, see :ref:`Mutex<class_Mutex>`.
|
||||
|
||||
Method Descriptions
|
||||
-------------------
|
||||
@@ -37,11 +37,11 @@ Method Descriptions
|
||||
|
||||
- :ref:`Error<enum_@GlobalScope_Error>` **post** **(** **)**
|
||||
|
||||
Lowers the ``Semaphore``, allowing one more thread in. Returns ``OK`` on success, ``ERR_BUSY`` otherwise.
|
||||
Lowers the ``Semaphore``, allowing one more thread in. Returns :ref:`@GlobalScope.OK<class_@GlobalScope_constant_OK>` on success, :ref:`@GlobalScope.ERR_BUSY<class_@GlobalScope_constant_ERR_BUSY>` otherwise.
|
||||
|
||||
.. _class_Semaphore_method_wait:
|
||||
|
||||
- :ref:`Error<enum_@GlobalScope_Error>` **wait** **(** **)**
|
||||
|
||||
Tries to wait for the ``Semaphore``, if its value is zero, blocks until non-zero. Returns ``OK`` on success, ``ERR_BUSY`` otherwise.
|
||||
Tries to wait for the ``Semaphore``, if its value is zero, blocks until non-zero. Returns :ref:`@GlobalScope.OK<class_@GlobalScope_constant_OK>` on success, :ref:`@GlobalScope.ERR_BUSY<class_@GlobalScope_constant_ERR_BUSY>` otherwise.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user