Merge pull request #105164 from stuartcarnie/apple_pthread

Apple: Add pthread implementation of `Thread` class
This commit is contained in:
Thaddeus Crews
2025-04-10 10:18:12 -05:00
12 changed files with 336 additions and 2 deletions

View File

@@ -119,6 +119,8 @@ private:
public:
static void _set_platform_functions(const PlatformFunctions &p_functions);
_FORCE_INLINE_ static void yield() { std::this_thread::yield(); }
_FORCE_INLINE_ ID get_id() const { return id; }
// get the ID of the caller thread
_FORCE_INLINE_ static ID get_caller_id() {