You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would make the Get{Text,Image} methods of the Clipboard API async, then schedule the SDL clipboard APIs calls on the main thread and report the result via the usual task mechanisms. Have a look at AudioComponent for inspiration.
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?
The text was updated successfully, but these errors were encountered: