You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* It's mandatory in Godot to call this method at some point after adding a task to clean up memory.
64
+
* We cannot wait immediately after adding the task because it would block the thread doing the dispatching, but we can do it after the task has been confirmed completed.
65
+
* It would also be wasteful to allocate a separate thread to poll and check task completions so instead we do process the list of complete tasks right after a regular dispatch.
66
+
*/
67
+
WorkerThreadPool.waitForTaskCompletion(it)
68
+
}
69
+
}
70
+
71
+
72
+
privatefunclearCompletedTasks() {
73
+
// Warning, this method is only supposed to be called when Godot terminates!
0 commit comments