Skip to content
Tcl Source Code Check-in [51f6c167f6]
Login

Check-in [51f6c167f6]

Overview
Comment:2000-04-08 Andreas Kupries <[email protected]> * Overall change: Definition of a public API for the creation of new threads. * generic/tclInt.h (line 1802f): Removed the definition of 'TclpThreadCreate'. (line 793f) Removed the definition of 'Tcl_ThreadCreateProc'. * generic/tcl.h (line 388f): Readded the definition of 'Tcl_ThreadCreateProc'. Added Win32 stuff send in by David Graveraux <[email protected]> to that too (__stdcall, ...). Added macros for the default stacksize and allowed flags. * generic/tcl.decls (line 1356f): Added definition of 'Tcl_CreateThread', slot 393 of the stub table. Two new arguments in the public API, for stacksize and flags. * win/tclWinThrd.c: * mac/tclMacThrd.c: Renamed TclpThreadCreate to Tcl_CreateThread, added handling of the stacksize. Flags are currently ignored. * unix/tclUnixThrd.c: See above, but handles joinable flag. Ignores the specified stacksize if the macro HAVE_PTHREAD_ATTR_SETSTACKSIZE is not defined. * generic/tclThreadTest.c (line 363): See below. * unix/tclUnixNotfy.c (line 210): Adapted to the changes above. Uses default stacksize and no flags now. * unic/tcl.m4 (line 382f): Added a check for 'pthread_attr_setstacksize' to detect platforms not implementing this feature of pthreads. If it is implemented, configure will define the macro HAVE_PTHREAD_ATTR_SETSTACKSIZE (See unix/tclUnixThrd.c too). * doc/Thread.3: Added Tcl_CreateThread and its arguments to the list of described functions. Removed stuff about not providing a public C-API for thread-creation.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 51f6c167f66056d7bb0b2490b8ac04ec0d454733
User & Date: kupries on 2000-04-09 16:04:16.000
Other Links: manifest | tags
Context
2000-04-09
21:14
* unix/tclUnixThrd.c (Tcl_CreateThread): moved TCL_THREADS ifdef inside of func as it is declared ... check-in: 26ed7e69c3 user: hobbs tags: trunk
16:04
2000-04-08 Andreas Kupries <[email protected]> * Overall change: Definition of a public API f... check-in: 51f6c167f6 user: kupries tags: trunk
2000-04-08
02:35
* tests/fCmd.test: marked test 8.1 knownBug because it is dangerous on poorly configured systems [... check-in: 89587dc15b user: hobbs tags: trunk
Changes