mirror of
https://github.com/godotengine/godot.git
synced 2026-02-07 19:32:36 +00:00
Thread: Re-add <new> include for std::hardware_destructive_interference_size
Somehow it would still build fine, but would crash when compiled with GCC 12.2 on Debian 12. Also re-add wrongly removed Mutex include from `thread_safe.h`, where it's used in macros. Add IWYU pragma comments to prevent it from mistakenly flagging those as unused.
This commit is contained in:
@@ -29,13 +29,13 @@
|
||||
/**************************************************************************/
|
||||
|
||||
#include "platform_config.h"
|
||||
#ifndef PLATFORM_THREAD_OVERRIDE // See details in thread.h
|
||||
|
||||
#ifndef PLATFORM_THREAD_OVERRIDE // See details in thread.h.
|
||||
|
||||
#include "thread.h"
|
||||
|
||||
#ifdef THREADS_ENABLED
|
||||
#include "core/object/script_language.h"
|
||||
#include "core/templates/safe_refcount.h"
|
||||
|
||||
SafeNumeric<uint64_t> Thread::id_counter(1); // The first value after .increment() is 2, hence by default the main thread ID should be 1.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user