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 - [Patch] Enable pthread support for Emscripten
Summary: [Patch] Enable pthread support for Emscripten
Status: ASSIGNED
Alias: None
Product: SDL
Classification: Unclassified
Component: thread (show other bugs)
Version: 2.0.13
Hardware: x86 Other
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords: target-2.0.16
Depends on:
Blocks:
 
Reported: 2020-08-15 03:13 UTC by Caleb Cornett
Modified: 2020-12-09 14:47 UTC (History)
0 users

See Also:


Attachments
Emscripten pthread patch (1.29 KB, patch)
2020-08-15 03:13 UTC, Caleb Cornett
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.