mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Merge pull request #105164 from stuartcarnie/apple_pthread
Apple: Add pthread implementation of `Thread` class
This commit is contained in:
commit
fc1dbda769
12 changed files with 336 additions and 2 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue