Add an OS.get_thread_caller_id() method

This can be used to print thread IDs in logs. This can make it easier
to debug multi-threaded applications.

Co-authored-by: Khaos <khaos@khaos-coders.org>
This commit is contained in:
Hugo Locurcio
2020-12-27 16:49:46 +01:00
parent d55e335026
commit 35b046ddf7
3 changed files with 14 additions and 0 deletions

View File

@ -232,6 +232,7 @@ public:
String get_user_data_dir() const;
Error set_thread_name(const String &p_name);
Thread::ID get_thread_caller_id() const;
bool has_feature(const String &p_feature) const;