1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00

Replace sanity with safety for checks

This commit is contained in:
A Thousand Ships
2023-09-28 15:42:55 +02:00
parent 6916349697
commit 034c0f1624
10 changed files with 20 additions and 20 deletions

View File

@@ -36,7 +36,7 @@
#include "core/object/script_language.h"
#ifdef DEV_ENABLED
// Includes sanity checks to ensure that a queue set as a thread singleton override
// Includes safety checks to ensure that a queue set as a thread singleton override
// is only ever called from the thread it was set for.
#define LOCK_MUTEX \
if (this != MessageQueue::thread_singleton) { \
@@ -537,7 +537,7 @@ CallQueue::~CallQueue() {
if (!allocator_is_custom) {
memdelete(allocator);
}
// This is done here to avoid a circular dependency between the sanity checks and the thread singleton pointer.
// This is done here to avoid a circular dependency between the safety checks and the thread singleton pointer.
if (this == MessageQueue::thread_singleton) {
MessageQueue::thread_singleton = nullptr;
}