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 22

Summary: use _beginthread on Windows...
Product: SDL Reporter: Ryan C. Gordon <icculus>
Component: threadAssignee: 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
Bruno Mart
Comment 1 Ryan C. Gordon 2006-01-03 12:19:05 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.

Comment 2 Jon Atkins 2006-01-04 03:02:17 UTC
a leak can become a flood...on some programs ;)
Comment 3 Alex Volkov 2006-01-04 15:46:17 UTC
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.
Comment 4 Ryan C. Gordon 2006-01-04 16:02:26 UTC
Patch applied to CVS, thanks!

--ryan.

Comment 5 Ryan C. Gordon 2006-01-27 11:23:05 UTC
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.