mirror of
https://github.com/godotengine/godot.git
synced 2024-12-03 09:52:18 +08:00
Fix compile issue in not very conformant compilers
This commit is contained in:
parent
809a982162
commit
250d8d00b5
@ -52,13 +52,17 @@ protected:
|
||||
// During group processing, these are thread-safe.
|
||||
// Outside group processing, these avoid the cost of sync by working as plain primitive types.
|
||||
union MTFlag {
|
||||
SafeFlag mt{};
|
||||
SafeFlag mt;
|
||||
bool st;
|
||||
MTFlag() :
|
||||
mt{} {}
|
||||
};
|
||||
template <class T>
|
||||
union MTNumeric {
|
||||
SafeNumeric<T> mt{};
|
||||
SafeNumeric<T> mt;
|
||||
T st;
|
||||
MTNumeric() :
|
||||
mt{} {}
|
||||
};
|
||||
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user