| Summary: | use _beginthread on Windows... | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Ryan C. Gordon <icculus> |
| Component: | thread | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | codepro |
| Version: | HG 1.2 | ||
| Hardware: | x86 | ||
| OS: | Windows (All) | ||
| Attachments: | Patch to use _beginthreadex on win32 | ||
|
Description
Ryan C. Gordon
2006-01-03 12:14:18 UTC
Sam says this is good to go on Windows, even when using Cygwin (which actually uses mingw32, and thus the MSVC runtime)...write up this patch. --ryan. a leak can become a flood...on some programs ;) Created attachment 16 [details]
Patch to use _beginthreadex on win32
Here is a patch to do the thing. Had to use _beginthreadex, after all, so that the returned thread handle is not auto-closed when the thread exits.
This is tested on both MSVC and Cygwin/MinGW compilation and builds, as well as a couple games.
Patch applied to CVS, thanks! --ryan. Setting Sam as "QA Contact" on all bugs (even resolved ones) so he'll definitely be in the loop to any further discussion here about SDL. --ryan. |