godot-docs
godot-docs copied to clipboard
Semaphore docs call out possible deadlocks on destruction but do not give guidance on how to avoid this
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