Skip to content
Tcl Source Code View Ticket
Login

View Ticket

documentation bug

Closed / Fixed1068077fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-11-17 15:23:31
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
aotto1968plain2004-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
dgp Ticket [1068077fff]: 1 change [History diff]2004-11-18 01:20:31
dgp Ticket [1068077fff]: 1 change [History diff]2004-11-18 01:20:32
vasiljevicplain2004-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
aotto1968plain2004-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
Log in (anonymous is fine) to add a comment.