| Summary: | [PATCH] SDL_SemWaitTimeout busy waits | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Colin Leroy <colin> |
| Component: | thread | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Attachments: |
Patch for LibSDL 1.2
Patch for LibSDL 1.3 |
||
Created attachment 560 [details]
Patch for LibSDL 1.3
Thank you very much for your patch for SDL 1.3! Do you give me permission to release your code with SDL 1.3 and future versions of SDL under both the LGPL and a closed-source commercial license? Yes, feel free to release it under both the LGPL and a closed-source commercial license, no problem with that :-) Thanks! I've added your change to the repository. http://hg.libsdl.org/SDL/rev/d547877e355e Thank you! Will you commit it to SDL 1.2 too ? I seem to understand that you don't plan on releasing another SDL 1.2, but I've seen patches to this branch, so... I'd love to see an 1.2.15 :) Yes, I applied both patches. Thanks! :) |
Created attachment 559 [details] Patch for LibSDL 1.2 Hi, the pthread implementation of SDL_SemWaitTimeout() uses busy waiting, while pthread's sem_timedwait() does work. Attached are patches that make use of it, one for LibSDL 1.2, one for 1.3. Hope this helps.