We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5258

Summary: [Patch] Enable pthread support for Emscripten
Product: SDL Reporter: Caleb Cornett <spydog>
Component: threadAssignee: Ryan C. Gordon <icculus>
Status: ASSIGNED --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 Keywords: target-2.0.16
Version: 2.0.13   
Hardware: x86   
OS: Other   
Attachments: Emscripten pthread patch

Description Caleb Cornett 2020-08-15 03:13:07 UTC
Created attachment 4437 [details]
Emscripten pthread patch

This patch enables building SDL2 for Emscripten with pthread support. This allows the SDL_Thread API to work in the browser, for recent versions of Chrome and Firefox. Of course, threading support is still totally optional and can be disabled by passing --disable-threads to the configure script.