| Summary: | SDL will not compile with "SDL_THREADS" disabled. | ||
|---|---|---|---|
| Product: | SDL | Reporter: | MakoEnergy02 |
| Component: | thread | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 2.0.0 | ||
| Hardware: | x86 | ||
| OS: | Windows (All) | ||
| Attachments: | Generic thread implementation patch. | ||
|
Description
MakoEnergy02
2013-05-31 16:49:56 UTC
Created attachment 1163 [details]
Generic thread implementation patch.
I looked at the windows thread implementation and used that as a reference to add the minimalist implementation of what I was referring to, and managed to resolve that compilation issue. I have attached a .patch file I generated using TortoiseGit showing the changes. Thanks for the patch, it looks good. http://hg.libsdl.org/SDL/rev/be3edef98d4b Keep in mind though, this also prevents SDL from using threads internally which can break things like audio and joystick hotplug detection. You probably want to compile SDL with thread support, and just use your own threads in your code. There shouldn't be any conflict if you do this. |