diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-01-26 15:54:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-26 15:54:25 +0100 |
commit | d6765c8d8b0a2134b051b655d4422b7816731208 (patch) | |
tree | 335e2f0079949d2aa4683e7649461516be6374b8 /doc | |
parent | 34eb5638d3e8ca9f4f15a3af0e7ab4a7423b69cb (diff) | |
parent | 35b046ddf7eab341256cced9d1c77e168c52e256 (diff) |
Merge pull request #44732 from Calinou/os-add-get-thread-caller-id
Add an `OS.get_thread_caller_id()` method
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/OS.xml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/classes/OS.xml b/doc/classes/OS.xml index ed94f9d90f..e209fc9ad9 100644 --- a/doc/classes/OS.xml +++ b/doc/classes/OS.xml @@ -136,6 +136,14 @@ Returns the keycode of the given string (e.g. "Escape"). </description> </method> + <method name="get_thread_caller_id" qualifiers="const"> + <return type="int"> + </return> + <description> + Returns the ID of the current thread. This can be used in logs to ease debugging of multi-threaded applications. + [b]Note:[/b] Thread IDs are not deterministic and may be reused across application restarts. + </description> + </method> <method name="get_cmdline_args"> <return type="PackedStringArray"> </return> |