You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Avoid multiple possibilites of deadlock in resource loading
This commit is contained in:
@@ -100,10 +100,13 @@
|
||||
</description>
|
||||
</method>
|
||||
<method name="wait_for_task_completion">
|
||||
<return type="void" />
|
||||
<return type="int" enum="Error" />
|
||||
<param index="0" name="task_id" type="int" />
|
||||
<description>
|
||||
Pauses the thread that calls this method until the task with the given ID is completed.
|
||||
Returns [constant @GlobalScope.OK] if the task could be successfully awaited.
|
||||
Returns [constant @GlobalScope.ERR_INVALID_PARAMETER] if a task with the passed ID does not exist (maybe because it was already awaited and disposed of).
|
||||
Returns [constant @GlobalScope.ERR_BUSY] if the call is made from another running task and, due to task scheduling, the task to await is at a lower level in the call stack and therefore can't progress. This is an advanced situation that should only matter when some tasks depend on others.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
|
||||
Reference in New Issue
Block a user