Thread APIs for Cygwin port.
Closed / Fixed444255ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2001-07-24 20:37:47
Here is a patch to implement Cygwin support for threading. Cygwin does not have the _beginthreadex and _endthreadex methods. Instead, it uses the CreateThread and ExitThread APIs directly. Cygwin uses a different runtime than msvcrt so it should not suffer from the runtime memory leaks that haunt the msvcrt code. 2001-07-24 Mo DeJong <[email protected]> * win/tclWinThrd.c (Tcl_CreateThread, TclpThreadExit): When building under Cygwin, call CreateThread instead of _beginthreadex and call ExitThread instead of _endthreadex. Cygwin does not support these msvcrt methods and does not suffer from the memory leak problems that prompted their use.
mdejongplain2001-07-25 03:37:48
File Added - 8811: createthread.patch
mdejong Ticket [444255ffff]: 1 change
[History diff]2001-08-13 04:32:56
davygrvyplain2001-09-02 17:39:47
Logged In: YES user_id=7549 >Cygwin uses >a different runtime than msvcrt so it should >not suffer from the runtime memory leaks >that haunt the msvcrt code. haunt? get it straight. I don't pick on other peoples OSes, so shut your trap. 1) msvcrt use thread specific data. 2) needs to track when a thread starts. 3) needs to know when a thread goes away. keep your tainted opinions to yourself.
davygrvyplain2001-09-03 07:37:54
Logged In: YES user_id=7549 committed to HEAD.
Log in (anonymous is fine) to add a comment.
Attachments:
- createthread.patch [download] added by mdejong on 2001-07-25 03:37:48. [details]