Tcl Source Code

View Ticket
Login
Ticket UUID: 444255
Title: Thread APIs for Cygwin port.
Type: Patch Version: None
Submitter: mdejong Created on: 2001-07-24 20:37:47
Subsystem: 52. Portability Support Assigned To: hobbs
Priority: 3 Low Severity:
Status: Closed Last Modified: 2001-09-03 07:37:54
Resolution: Fixed Closed By: davygrvy
    Closed on: 2001-09-03 00:37:54
Description:
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.
User Comments: davygrvy added on 2001-09-03 07:37:54:
Logged In: YES 
user_id=7549

committed to HEAD.

davygrvy added on 2001-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.

mdejong added on 2001-07-25 03:37:48:

File Added - 8811: createthread.patch

Attachments: