Skip to content

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

Open

Description

@amonroejj

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions