godot-docs icon indicating copy to clipboard operation
godot-docs copied to clipboard

Semaphore docs call out possible deadlocks on destruction but do not give guidance on how to avoid this

Open amonroejj opened this issue 1 month ago • 0 comments

Your Godot version: 4.7.1

Issue description: Semaphore docs call out possible deadlocks on destruction but do not give guidance on how to avoid this.

It's not clear how to purposely stop wait()ing. Once you're there, you're stuck there. If the wait() is on a background thread and you try WorkerThreadPool.wait_for_task_completion(tid), Godot usually hangs.

URL to the documentation page (if already existing): https://docs.godotengine.org/en/stable/classes/class_semaphore.html

amonroejj avatar Oct 09 '26 20:10 amonroejj