mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
classref: Sync with current master branch (2e7fc81)
This commit is contained in:
@@ -46,13 +46,13 @@ Methods
|
||||
.. table::
|
||||
:widths: auto
|
||||
|
||||
+-------------------------+--------------------------------------------------------------+
|
||||
| void | :ref:`post<class_Semaphore_method_post>` **(** **)** |
|
||||
+-------------------------+--------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`try_wait<class_Semaphore_method_try_wait>` **(** **)** |
|
||||
+-------------------------+--------------------------------------------------------------+
|
||||
| void | :ref:`wait<class_Semaphore_method_wait>` **(** **)** |
|
||||
+-------------------------+--------------------------------------------------------------+
|
||||
+-------------------------+--------------------------------------------------------+
|
||||
| |void| | :ref:`post<class_Semaphore_method_post>`\ (\ ) |
|
||||
+-------------------------+--------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`try_wait<class_Semaphore_method_try_wait>`\ (\ ) |
|
||||
+-------------------------+--------------------------------------------------------+
|
||||
| |void| | :ref:`wait<class_Semaphore_method_wait>`\ (\ ) |
|
||||
+-------------------------+--------------------------------------------------------+
|
||||
|
||||
.. rst-class:: classref-section-separator
|
||||
|
||||
@@ -67,7 +67,7 @@ Method Descriptions
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
void **post** **(** **)**
|
||||
|void| **post**\ (\ )
|
||||
|
||||
Lowers the **Semaphore**, allowing one more thread in.
|
||||
|
||||
@@ -79,7 +79,7 @@ Lowers the **Semaphore**, allowing one more thread in.
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
:ref:`bool<class_bool>` **try_wait** **(** **)**
|
||||
:ref:`bool<class_bool>` **try_wait**\ (\ )
|
||||
|
||||
Like :ref:`wait<class_Semaphore_method_wait>`, but won't block, so if the value is zero, fails immediately and returns ``false``. If non-zero, it returns ``true`` to report success.
|
||||
|
||||
@@ -91,7 +91,7 @@ Like :ref:`wait<class_Semaphore_method_wait>`, but won't block, so if the value
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
void **wait** **(** **)**
|
||||
|void| **wait**\ (\ )
|
||||
|
||||
Waits for the **Semaphore**, if its value is zero, blocks until non-zero.
|
||||
|
||||
@@ -102,3 +102,4 @@ Waits for the **Semaphore**, if its value is zero, blocks until non-zero.
|
||||
.. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
|
||||
.. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
|
||||
.. |void| replace:: :abbr:`void (No return value.)`
|
||||
|
||||
Reference in New Issue
Block a user