Tcl Source Code

View Ticket
Login
Ticket UUID: 219016
Title: tclWinThrd.c swap from CreateThread() to _beginthreadex()
Type: Bug Created on: 2000-10-26 01:09:21
Submitter: nobody Assigned to: nobody
Subsystem: 49. Threading Severity:
Priority: 2 Last modified: 2000-10-26 08:33:09
Status: Closed Closed by: welch
Resolution: Fixed Closed on: 2000-10-26 01:33:09
Version: obsolete: 8.3b1
Description:
OriginalBugID: 3954 Bug
Version: 8.3b1
SubmitDate: '1999-12-29'
LastModified: '2000-04-25'
Severity: MED
Status: Released
Submitter: techsupp
ChangedBy: hobbs
RelatedBugIDs: 3955 3933 3932 3931
OS: Windows 2000
FixedDate: '2000-04-25'
FixedInVersion: 8.3.1
ClosedDate: '2000-10-25'


Name:
David Gravereaux

Comments:
I think this is needed to match the prototype change for _beginthreadex().  I'll look into this on my end some more.  thread.test passes fine, but I want to make sure all is well with all that casting going on.

Also, I noticed tclWinThrd.c and .h are are using SCCS.  Could you swap these over to RCS, as the CVS version stamps don't match?

Patch:
Index: tclInt.h
===================================================================
RCS file: /cvsroot/tcl/generic/tclInt.h,v
retrieving revision 1.39
diff -c -r1.39 tclInt.h
*** tclInt.h1999/12/12 22:46:421.39
--- tclInt.h1999/12/23 03:48:35
***************
*** 792,797 ****
--- 792,799 ----

  #ifdef MAC_TCL
  typedef pascal void *(Tcl_ThreadCreateProc) _ANSI_ARGS_((ClientData clientData));
+ #elseif __WIN32__
+ typedef __stdcall unsigned (Tcl_ThreadCreateProc) _ANSI_ARGS_((ClientData clientData));
  #else
  typedef void (Tcl_ThreadCreateProc) _ANSI_ARGS_((ClientData clientData));
  #endif

PatchFiles:
tclInt.h



Moved to tcl.h and corrected in 8.3.1. 
-- 04/25/2000 hobbs