From 54a9731241a0237bd126c2c26fa73c710a30f31e Mon Sep 17 00:00:00 2001 From: reduz Date: Wed, 22 Jun 2022 13:46:46 +0200 Subject: [PATCH] Remake resource thread safety and API * Ensures thread safety when resources are destroyed. * Simplified API by always forcing `ResourceCache::get_ref`, which needs less hacks and is fully thread safe. * Removed RWLock for resources because its not possible to use for the new logic. Should not be a problem. Supersedes #57533 --- visual_script_flow_control.cpp | 2 +- visual_script_func_nodes.cpp | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/visual_script_flow_control.cpp b/visual_script_flow_control.cpp index bbbb995..19bbd83 100644 --- a/visual_script_flow_control.cpp +++ b/visual_script_flow_control.cpp @@ -803,7 +803,7 @@ public: //if the script is not in use by anyone, we can safely assume whatever we got is not casting to it. return 1; } - Ref