Skip to content

SDL clipboard implementation is potentially unsafe #6538

@hwsmm

Description

@hwsmm

While investigating ppy/osu#32038 (I couldn't reproduce, but anyway), I found that our SDL clipboard implementation may be unsafe.

SDL_clipboard.h requires all functions to run on the main thread, but we run these on a thread that called Set/Get methods.

I could probably try fixing it myself, but it is a bit tricky. If Get methods have to run on the main thread, do we need to wait for thread sleep?

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