Merge pull request #78700 from AThousandShips/mutex_doc

Fix documentation for `Mutex.try_lock`
This commit is contained in:
Rémi Verschelde 2023-06-26 10:13:53 +02:00
commit afc5fa14ad
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -27,7 +27,7 @@
<return type="bool" /> <return type="bool" />
<description> <description>
Tries locking this [Mutex], but does not block. Returns [code]true[/code] on success, [code]false[/code] 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. [b]Note:[/b] This function returns [code]true[/code] if the thread already has ownership of the mutex.
</description> </description>
</method> </method>
<method name="unlock"> <method name="unlock">