Revert recently added approach to cross-thread lambda survival
Commits reverted: -1ed6919148-271511726b
This commit is contained in:
parent
c2f8fb3015
commit
f26328e9a3
4 changed files with 16 additions and 107 deletions
|
|
@ -45,7 +45,7 @@ class GDScriptLambdaCallable : public CallableCustom {
|
|||
GDScriptFunction *function = nullptr;
|
||||
Ref<GDScript> script;
|
||||
uint32_t h;
|
||||
List<GDScript::UpdatableFuncPtrElement>::Element *updatable_func_ptr_element = nullptr;
|
||||
GDScript::UpdatableFuncPtrElement updatable_func_ptr_element;
|
||||
|
||||
Vector<Variant> captures;
|
||||
|
||||
|
|
@ -72,7 +72,7 @@ class GDScriptLambdaSelfCallable : public CallableCustom {
|
|||
Ref<RefCounted> reference; // For objects that are RefCounted, keep a reference.
|
||||
Object *object = nullptr; // For non RefCounted objects, use a direct pointer.
|
||||
uint32_t h;
|
||||
List<GDScript::UpdatableFuncPtrElement>::Element *updatable_func_ptr_element = nullptr;
|
||||
GDScript::UpdatableFuncPtrElement updatable_func_ptr_element;
|
||||
|
||||
Vector<Variant> captures;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue