| Ticket UUID: | 1068077 | ||
| Title: | documentation bug | ||
| Type: | Bug | Created on: | 2004-11-17 15:23:31 |
| Submitter: | aotto1968 | Assigned to: | vasiljevic |
| Subsystem: | 49. Threading | Severity: | |
| Priority: | 5 Medium | Last modified: | 2004-11-26 15:01:35 |
| Status: | Closed | Closed by: | vasiljevic |
| Resolution: | Fixed | Closed on: | 2004-11-25 16:03:51 |
| Version: | obsolete: 8.4.7 | ||
| Description: | ||||
Hi, >>> tcl8.4.7/generic/tclDecls.h /* 318 */ EXTERN void Tcl_ThreadAlert _ANSI_ARGS_((Tcl_ThreadId threadId)); >>> man page void Tcl_ThreadAlert(threadId, clientData) mfg aotto | ||||
| User Comments: | ||||
aotto1968 added on 2004-11-17 23:01:22:
Logged In: YES
user_id=1030114
additional errors:
1. man-page for 'Thread'
mutexPtr has type 'Tcl_Condition *' but is 'Tcl_Mutex *'
2. man page says nothing about compiling with
-DTCL_THREADS=1 to get thread behaviour
(there are people not using the tcl-example-extension)
3. man page says nothing about 'TCL_DECLARE_MUTEX'
th create a Mutex without compiler-warning if no 'TCL_THREADS'
is available
vasiljevic added on 2004-11-25 23:03:51:
Logged In: YES user_id=95086 Docs about Tcl_ThreadAlert in doc/Notifier.3 is fixed. Using Tcl_Condition instead of Tcl_Mutex in doc/Thread.3 is Fixed Using --enable-threads is correctly stated in the doc/Thread.3 as the prerequisite of building Tcl core with threads-enabled. This directive takes care to define TCL_THREADS and other symbols needed for proper threading build. The TCL_THREADS alone is alone not always sufficient. The TCL_DECLARE_MUTEX usage is not mentioned in the doc/Thread.3 aotto1968 added on 2004-11-26 15:01:35:
Logged In: YES user_id=1030114 Hi, thank you for fixing, but one Item is not solved: >>>>> Using --enable-threads is correctly stated in the doc/Thread.3 .... <<<<< this is OK for tcl itself but not for extensions !!! I speak about extensions be build without TEA !!! The problem is that you get !no! error message if you build an extension without 'TCL_THREADS' all thread-code just disappear (the people think they use threads but they don't and the code fails) (like me) mfg aotto | ||||
