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 - use _beginthread on Windows...
Summary: use _beginthread on Windows...
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: thread (show other bugs)
Version: HG 1.2
Hardware: x86 Windows (All)
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-03 12:14 UTC by Ryan C. Gordon
Modified: 2006-01-27 11:23 UTC (History)
1 user (show)

See Also:


Attachments
Patch to use _beginthreadex on win32 (1.19 KB, patch)
2006-01-04 15:46 UTC, Alex Volkov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.