diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-07-10 19:18:17 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-07-10 19:18:17 (GMT) |
commit | ec3c18e54e7411b1a18b2695fac6ce00069849b4 (patch) | |
tree | a1d6efb47f9187208e5cd4bf8f4a36bd9d4d1e9d /doc/Thread.3 | |
parent | 9a9c228341c0256a141aa964d570d563e177440c (diff) | |
download | tcl-ec3c18e54e7411b1a18b2695fac6ce00069849b4.zip tcl-ec3c18e54e7411b1a18b2695fac6ce00069849b4.tar.gz tcl-ec3c18e54e7411b1a18b2695fac6ce00069849b4.tar.bz2 |
Remove 4 unneeded compatibility macro's, because those functions never return -1 anyway.
Change documentation to use void * in stead of ClientData
Diffstat (limited to 'doc/Thread.3')
-rw-r--r-- | doc/Thread.3 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/Thread.3 b/doc/Thread.3 index 5966a71..c6e4bd4 100644 --- a/doc/Thread.3 +++ b/doc/Thread.3 @@ -65,7 +65,7 @@ Id of the thread waited upon. .AP Tcl_ThreadCreateProc *proc in This procedure will act as the \fBmain()\fR of the newly created thread. The specified \fIclientData\fR will be its sole argument. -.AP ClientData clientData in +.AP void *clientData in Arbitrary information. Passed as sole argument to the \fIproc\fR. .AP int stackSize in The size of the stack given to the new thread. @@ -202,7 +202,7 @@ value and then finishes. .CS static \fBTcl_ThreadCreateType\fR MyThreadImplFunc( - ClientData clientData) + void *clientData) { int i, limit = (int) clientData; for (i=0 ; i<limit ; i++) { @@ -217,7 +217,7 @@ would do this: .PP .CS int limit = 1000000000; -ClientData limitData = (void*)((intptr_t) limit); +void *limitData = (void*)((intptr_t) limit); Tcl_ThreadId id; \fI/* holds identity of thread created */\fR int result; |