diff options
author | davidg <davidg@noemail.net> | 2000-07-26 01:29:00 (GMT) |
---|---|---|
committer | davidg <davidg@noemail.net> | 2000-07-26 01:29:00 (GMT) |
commit | 2238eae465f61ae44c601c7b07d479ad0a903150 (patch) | |
tree | 99464d73dab437ba51d409432424bee4a4b25391 /doc/Async.3 | |
parent | 0c2d24904a17d2c7f57e8d8c1198b5d875b17235 (diff) | |
download | tcl-2238eae465f61ae44c601c7b07d479ad0a903150.zip tcl-2238eae465f61ae44c601c7b07d479ad0a903150.tar.gz tcl-2238eae465f61ae44c601c7b07d479ad0a903150.tar.bz2 |
Thread-safe rewrite for the Tcl_Async* commands.
FossilOrigin-Name: 50488dfc4cf112320bb8bb9cfa3987fb8364b035
Diffstat (limited to 'doc/Async.3')
-rw-r--r-- | doc/Async.3 | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/Async.3 b/doc/Async.3 index 81c5cd1..60fdad4 100644 --- a/doc/Async.3 +++ b/doc/Async.3 @@ -5,7 +5,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: Async.3,v 1.4 2000/04/14 23:01:48 hobbs Exp $ +'\" RCS: @(#) $Id: Async.3,v 1.5 2000/07/26 01:29:00 davidg Exp $ '\" .so man.macros .TH Tcl_AsyncCreate 3 7.0 Tcl "Tcl Library Procedures" @@ -60,6 +60,13 @@ The only safe approach is to set a flag indicating that the event occurred, then handle the event later when the world has returned to a clean state, such as after the current Tcl command completes. .PP +\fBTcl_AsyncCreate\fR, \fBTcl_AsyncDelete\fR, and \fBTcl_AsyncReady\fR +are thread sensitive. They access and/or set a thread-specific data +structure in the event of an --enable-thread built core. The token +created by Tcl_AsyncCreate contains the needed thread information it +was called from so that calling Tcl_AsyncMark(token) will only yield +the origin thread into the AsyncProc. +.PP \fBTcl_AsyncCreate\fR creates an asynchronous handler and returns a token for it. The asynchronous handler must be created before |