diff options
author | Juan Linietsky <reduzio@gmail.com> | 2023-04-22 15:34:16 +0200 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2023-04-24 15:13:58 +0200 |
commit | a37c30dfc92d98d79c4a315c58ecb5b2adabf97a (patch) | |
tree | c0a91be57bf01b77c5b0aa090233c63f9135eab1 /servers/rendering/renderer_canvas_cull.cpp | |
parent | 24cb43a8741c7b10abbbbc77bb6e2bc188662ce0 (diff) | |
download | redot-engine-a37c30dfc92d98d79c4a315c58ecb5b2adabf97a.tar.gz |
Fix thread IDs.
On Linux, thread IDs were not properly assigned with the current approach.
The line:
`std::thread new_thread(&Thread::callback, _thread_id_hash(thread.get_id()), p_settings, p_callback, p_user);`
does not work because the thread ID is not assigned until the thread starts.
This PR changes the behavior to use manually generated thread IDs. Additionally, if a thread is (or may have been created) outside Godot, the method `Thread::attach_external_thread` was added.
Diffstat (limited to 'servers/rendering/renderer_canvas_cull.cpp')
0 files changed, 0 insertions, 0 deletions