Skip to content

potential deadlock when using event watch #15709

Description

@1bsyl

@slouken

Open a new issue to discuss potential deadlock en using event watch.

76560f9 appears to need a generic fixes:
any joystick event delivery combined with an event watcher that locks joysticks

And, in fact this does not only affect joystick but also Touch Lock:

example:

SDLActivitiy thread:
SDL_SendTouchMotion():   SDL_LockTouch();  ..wait long  ... SDL_SendMouseMotion()

SDL Thread C:
event Watch ->  any API that does a SDL_LockTouch() will deadlock.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions