Booleanize various sync primitives' wait & locking methods

This commit is contained in:
Pedro J. Estébanez
2023-01-27 11:04:41 +01:00
parent 9f74f0f6c5
commit f630940591
9 changed files with 20 additions and 23 deletions

View File

@@ -18,9 +18,9 @@
</description>
</method>
<method name="try_lock">
<return type="int" enum="Error" />
<return type="bool" />
<description>
Tries locking this [Mutex], but does not block. Returns [constant OK] on success, [constant ERR_BUSY] otherwise.
Tries locking this [Mutex], but does not block. Returns [code]true[/code] on success, [code]false[/code] otherwise.
[b]Note:[/b] This function returns [constant OK] if the thread already has ownership of the mutex.
</description>
</method>