| Summary: | Remove semaphore from SDL_CreateThread | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Ryan C. Gordon <icculus> |
| Component: | thread | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | Keywords: | target-2.0.14 |
| Version: | HG 2.0 | ||
| Hardware: | All | ||
| OS: | Other | ||
| Attachments: | Attempt at simplfying this | ||
|
Description
Ryan C. Gordon
2020-03-27 01:42:59 UTC
...or just make "data" and "func" from thread_args part of SDL_Thread, and don't free anything extra at all... --ryan. Created attachment 4281 [details]
Attempt at simplfying this
Here's a patch to clean it up. Unless it was super important, this nukes a bunch of code, some memory management and a semaphore, and should fix Emscripten threads too.
--ryan.
Looks good! https://hg.libsdl.org/SDL/rev/498a7f27758e |