summaryrefslogtreecommitdiffstats
path: root/doc/Thread.3
Commit message (Collapse)AuthorAgeFilesLines
* Simplify Tcl_AppInit and *_Init definitions.nijtmans2010-06-161-5/+5
| | | | | | | | Change TclpThreadCreate and Tcl_CreateThread signature, making clear that "proc" is a function pointer, as in all other "proc" function parameters. FossilOrigin-Name: 8567ee888a85773fefe8d5dbf8da6fd77a5a00cc
* Improve the documentation of how to make and use a thread.dkf2010-03-311-1/+48
| | | FossilOrigin-Name: c08ea9d1e0903b8b4d0a069d85da05ae4106f34f
* CONSTified 4 functions in the Notifier which all have a Tcl_Time* in it which isnijtmans2008-07-241-2/+2
| | | | | | | | | | | | | supposed to be a constant, but this was not reflected in the API: Tcl_SetTimer Tcl_WaitForEvent Tcl_ConditionWait Tcl_SetMaxBlockTime Introduced a CONST86, so extensions which have their own Notifier (are there any?) can be modified to compile against both Tcl 8.5 and Tcl 8.6. This change complies with TIP #24 FossilOrigin-Name: 7ade6e690e5d9da6d707b6796e656ef6df6565e3
* Prepare Tcl's docs for life as 8.6 (remove out of date change bars, fixdkf2008-06-291-3/+2
| | | | | | typedefs, add a few missing bits) FossilOrigin-Name: 29df58df24d30f1fa853980095d4e8573cf89bef
* merge stable branch onto HEADdgp2007-12-131-1/+1
| | | FossilOrigin-Name: d1f7550cd9bf1343d8505fb99fc5141b58bb88bf
* line endingsdgp2007-10-291-197/+197
| | | FossilOrigin-Name: 00992a0194213b50c082ba7f2626c7b4f8466a8f
* GOOBE the docs some more.dkf2007-10-291-2/+2
| | | FossilOrigin-Name: 6bfb5e99dd2a076f06266fca61f98da78ce1831a
* First stage of doing GOOBE improvements to documentation now that the html ↵dkf2007-10-281-197/+197
| | | | | generation works FossilOrigin-Name: 273847833ca13d62417e5af893e17a7215ba1ef0
* Merged kennykb-numerics-branch back to the head; TIPs 132 and 232kennykb2005-05-101-1/+1
| | | FossilOrigin-Name: 1cc2336920c70c6b9f7825b88dec87fc223f2c4e
* * doc/Thread.3: One-word grammar fix.davidw2005-02-061-2/+2
| | | FossilOrigin-Name: 26297cfe32e4bb02721d7275bf478b25a18b7f26
* * doc/Thread.3: Fixed sentence describing flags for Tcl_CreateThread.davidw2005-02-051-3/+3
| | | | | | | | | * doc/FileSystem.3: Cleaned up typo in Tcl_FSNewNativePath documentation. * generic/tclPathObj.c: Cleaned up typo in comment. FossilOrigin-Name: fd7b08dfdcac91b6f43d01a2b3bd5d3c60df17ae
* minor nroff typoshobbs2004-12-071-4/+3
| | | FossilOrigin-Name: e308d155a90b2f343e07129e07cae52c65d09c65
* Added changes from core-8-4-branchvasiljevic2004-11-251-1/+4
| | | FossilOrigin-Name: 22a6e2458a6065c1fccdcc16e462beb3b3864c9f
* Update the .AS macro definition and take advantage of it's new-found power.dkf2004-10-071-2/+2
| | | FossilOrigin-Name: dcba7c799d5c4345dc2f465a5d8a137b364fe6cc
* More documentation fixes from Mikhail Kolesnitchenko. [Patch 1022527]dkf2004-09-061-7/+7
| | | FossilOrigin-Name: 3e34564c9e6923a1da22c3eeaa4769978d5163d8
* Reworked to remove references to testing interfaces and instead promote thedkf2004-04-261-41/+25
| | | | | | | use of the Thread package. [Patch 932527] Also reworked and reordered the page for better readability. FossilOrigin-Name: c1afb98822293022e61b64c81e939a4905d08361
* Corrected type error in synopsis.dgp2004-04-161-2/+2
| | | FossilOrigin-Name: 54aab9286c3e22bec69d0e476e25b851e3d022c7
* Removed support for Mac OS Classic platform [Patch 918142]das2004-03-171-4/+4
| | | FossilOrigin-Name: b6330dbac725e2d527ad089669aa7f4779d19398
* Spell-check, fixed typos (Updates from Larry Virden).jenglish2002-07-011-5/+5
| | | FossilOrigin-Name: 34cded11b7d729621dd98d2f6dc3fb89428f97e8
* doc/AddErrInfo.3, doc/ChnlStack.3, doc/Exit.3, doc/GetIndex.3, doc/Notifier.3,jenglish2000-07-241-2/+2
| | | | | | | | | | doc/Object.3, doc/RegExp.3, doc/SetResult.3, doc/SplitList.3, doc/Thread.3: Added missing entries to NAME sections. doc/AddErrInfo.3, doc/CrtObjCmd.3, doc/RecEvalObj.3: Changed Tcl_EvalObj to Tcl_EvalObjEx FossilOrigin-Name: 68fe2a61a5e030d2764f54eb3060a99984c067a5
* 2000-05-02 Andreas Kupries <a.kupries@westend.com>kupries2000-05-021-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Overall changes: (1) Implementation of joinable threads for all platforms. (2) Additional API's for channels. Required to allow the thread extension to move channels between threads. * generic/tcl.decls (lines 1360f): Added Tcl_JoinThread, Tcl_IsChannelShared, Tcl_IsChannelRegistered, Tcl_CutChannel, Tcl_SpliceChannel, Tcl_IsChannelExisting and Tcl_ClearChannelHandlers (slots 394 to 400). * generic/tclIO.c: Implemented Tcl_IsChannelRegistered, Tcl_IsChannelShared, Tcl_CutChannel, Tcl_SpliceChannel, Tcl_IsChannelExisting and Tcl_ClearChannelHandlers. Tcl_CutChannel uses code from CloseChannel. Replaced this code by a call to Tcl_CutChannel. Replaced several code fragments adding channels to the channel list with calls to Tcl_SpliceChannel. Removed now unused variables from CloseChannel and Tcl_UnstackChannel. Tcl_ClearChannelHandlers uses code from Tcl_Close. Replaced this code by a call to Tcl_ClearChannelHandlers. Removed now unused variables from Tcl_Close. Added the subcommands 'cut', 'forgetch', 'splice' and 'isshared' to the test code (TclTestChannelCmd). * unix/tclUnixThread.c: Implemented Tcl_JoinThread using the pthread-functionality. * win/tclWinThrd.c: Fixed several small typos in comments. Implemented Tcl_JoinThread using a platform independent emulation layer (see generic/tclThreadJoin.c below). Added 'joinLock' to serialize Tcl_CreateThread and TclpExitThread to prevent a race for joinable threads. * mac/tclMacThrd.c: Implemented Tcl_JoinThread using a platform independent emulation layer (see generic/tclThreadJoin.c below). Due to the cooperative nature of threading on this platform the race mentioned above is not present. * generic/tclThreadJoin.c: New file. Contains a platform independent emulation layer helping in the implementation of joinable threads for the win and mac platforms. * generic/tclInt.h: Added declarations for TclJoinThread, TclRememberJoinableThread and TclSignalExitThread. These procedures define the API of the emulation layer for joinable threads (see generic/tclThreadJoin.c above). * win/Makefile.in: * win/makefile.vc: Added generic/tclTheadJoin.o to the rules. * mac/: I don't know to which file generic/tclTheadJoin.o has to be added to so that it compiles. Sorry. * unix/tclUnixChan.c: #ifdef'd the thread-local list of file channels as it prevents us from transfering channels. To restore this we may need an extended interface to drivers in the future. Target: 9.0. Found while testing the new transfer of channels. The information in this list for a channel was left behind and then crashed the system during finalization. * generic/tclThreadTest.c: Added -joinable flag to 'testthread create'. Added subcommand 'testthread join'. * doc/CrtChannel.3: Added documentation for Tcl_IsChannelRegistered, Tcl_IsChannelShared, Tcl_CutChannel, Tcl_SpliceChannel, Tcl_IsChannelExisting and Tcl_ClearChannelHandlers. * doc/Thread.3: Added documentation for Tcl_JoinThread. * tests/thread.test: Added tests for joining of threads. FossilOrigin-Name: cdf262856d1872c95cf12baf78d90874dae1b03f
* NAME macro fixhobbs2000-04-251-4/+2
| | | FossilOrigin-Name: 968c1a7522d0ffcc4cc2e13e0d5f35b4f316fc1a
* * library/dde1.1/pkgIndex.tcl:hobbs2000-04-201-3/+4
| | | | | | | | | | | | | * library/reg1.0/pkgIndex.tcl: * win/tclWinChan.c: * win/tclWinThrd.c: converted CRLF to LF the */tcl.hpj.in files were not converted, as it confuses hcw locally. [Bug: 5096] * win/Makefile.in: expanded cleanup or help files * doc/Thread.3: minor macro cleanup FossilOrigin-Name: c818263820a105c3b8dd72ec347d711487c57a18
* 2000-04-08 Andreas Kupries <a.kupries@westend.com>kupries2000-04-091-5/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 <davygrvy@bigfoot.com> 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. FossilOrigin-Name: 51f6c167f66056d7bb0b2490b8ac04ec0d454733
* 2000-04-03 Andreas Kupries <a.kupries@westend.com>kupries2000-04-041-5/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Overall change: Definition of public API's for the finalization of conditions and mutexes. [Bug: 4199]. * generic/tclInt.h: Removed definitions of TclFinalizeMutex and TclFinalizeCondition. * generic/tcl.decls: Added declarations of Tcl_MutexFinalize and Tcl_ConditionFinalize. * generic/tclThread.c: Renamed TclFinalizeMutex to Tcl_MutexFinalize. Renamed TclFinalizeCondition to Tcl_ConditionFinalize. * generic/tclNotify.c: Changed usage of TclFinalizeMutex to Tcl_MutexFinalize. * unix/tclUnixNotfy.c: * generic/tclThreadTest.c: Changed usages of TclFinalizeCondition to Tcl_ConditionFinalize. * generic/tcl.h: Added empty macros for Tcl_MutexFinalize and Tcl_ConditionFinalize, to be used when the core is compiled without threads. * doc/Thread.3: Added description the new API's. FossilOrigin-Name: 861e460865376cec8a58d5ada51246e862a3ada4
* 1999-08-20 Jeff Hobbs <hobbs@scriptics.com>hobbs1999-08-211-2/+2
| | | | | | * doc/*: fixed various nroff bugs in man pages [Bug: 2503 2588] FossilOrigin-Name: 9772601e1f9ebb9cd5b8613e21170f240af3c795
* merged doc changes from 8.1.0stanton1999-05-061-1/+1
| | | FossilOrigin-Name: f1b3babf61ee215cee5407ee5c8dc5c9bd578fd6
* * Merged changes from 8.1.0 branchstanton1999-04-301-21/+44
| | | FossilOrigin-Name: dc45694c11c7ad43dd4c5dca49bfe1d7cedec9bb
* Resynced with mainline.rjohnson1999-04-211-1/+1
| | | FossilOrigin-Name: 45b9dd789f717fcc67d00014dd8255359b392df0
* added Tcl_DStringTrunc to DString.3hershey1999-04-161-2/+16
| | | | | | | | added mention of Tcl_ThreadQueueEvent, Tcl_ThreadAlert to Notifier.3 added Tcl_ThreadQueueEvent, Tcl_ThreadAlert, and Tcl_GetCurrentThread to Thread.3 FossilOrigin-Name: 401c4cabb05a3bdc401aa51f2d7de8415e89464c
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-0/+100
FossilOrigin-Name: f3b32fb71c9011ac220779bd9dbe5617c9dc87d9