summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Mistachkin <joe@mistachkin.com>2003-05-13 10:16:16 (GMT)
committerJoe Mistachkin <joe@mistachkin.com>2003-05-13 10:16:16 (GMT)
commit89e5a5f995907e072bff4bebc780df6ab8e4d55f (patch)
tree1f0a1e95565618ea475808d459aed5e188a41f47
parentabbcb0c269fc4339825f49ec99f9799d03f0340e (diff)
downloadtcl-89e5a5f995907e072bff4bebc780df6ab8e4d55f.zip
tcl-89e5a5f995907e072bff4bebc780df6ab8e4d55f.tar.gz
tcl-89e5a5f995907e072bff4bebc780df6ab8e4d55f.tar.bz2
fix for [Bug 732477]
-rw-r--r--ChangeLog8
-rw-r--r--generic/tcl.decls4
-rw-r--r--generic/tclDecls.h6
-rw-r--r--mac/tclMacThrd.c12
-rw-r--r--unix/tclUnixThrd.c12
-rw-r--r--win/tclWinThrd.c14
6 files changed, 32 insertions, 24 deletions
diff --git a/ChangeLog b/ChangeLog
index 3c35afd..01706b7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2003-05-13 Joe Mistachkin <joe@mistachkin.com>
+
+ * generic/tcl.decls: Changed Tcl_JoinThread parameter name from
+ * generic/tclDecls.h: "id" to "threadId". [Bug 732477]
+ * unix/tclUnixThrd.c:
+ * win/tclWinThrd.c:
+ * mac/tclMacThrd.c:
+
2003-05-13 Daniel Steffen <das@users.sourceforge.net>
* generic/tcl.decls:
diff --git a/generic/tcl.decls b/generic/tcl.decls
index a6ed026..7fcb4c6 100644
--- a/generic/tcl.decls
+++ b/generic/tcl.decls
@@ -11,7 +11,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: tcl.decls,v 1.96 2003/05/13 08:40:30 das Exp $
+# RCS: @(#) $Id: tcl.decls,v 1.97 2003/05/13 10:16:16 mistachkin Exp $
library tcl
@@ -1457,7 +1457,7 @@ declare 411 generic {
# Introduced in 8.4a2
declare 412 generic {
- int Tcl_JoinThread(Tcl_ThreadId id, int* result)
+ int Tcl_JoinThread(Tcl_ThreadId threadId, int* result)
}
declare 413 generic {
int Tcl_IsChannelShared(Tcl_Channel channel)
diff --git a/generic/tclDecls.h b/generic/tclDecls.h
index fce6fef..e8eb34a 100644
--- a/generic/tclDecls.h
+++ b/generic/tclDecls.h
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclDecls.h,v 1.94 2003/04/05 01:26:11 dkf Exp $
+ * RCS: @(#) $Id: tclDecls.h,v 1.95 2003/05/13 10:16:16 mistachkin Exp $
*/
#ifndef _TCLDECLS
@@ -1305,7 +1305,7 @@ EXTERN Tcl_DriverFlushProc * Tcl_ChannelFlushProc _ANSI_ARGS_((
EXTERN Tcl_DriverHandlerProc * Tcl_ChannelHandlerProc _ANSI_ARGS_((
Tcl_ChannelType * chanTypePtr));
/* 412 */
-EXTERN int Tcl_JoinThread _ANSI_ARGS_((Tcl_ThreadId id,
+EXTERN int Tcl_JoinThread _ANSI_ARGS_((Tcl_ThreadId threadId,
int* result));
/* 413 */
EXTERN int Tcl_IsChannelShared _ANSI_ARGS_((Tcl_Channel channel));
@@ -2077,7 +2077,7 @@ typedef struct TclStubs {
Tcl_DriverGetHandleProc * (*tcl_ChannelGetHandleProc) _ANSI_ARGS_((Tcl_ChannelType * chanTypePtr)); /* 409 */
Tcl_DriverFlushProc * (*tcl_ChannelFlushProc) _ANSI_ARGS_((Tcl_ChannelType * chanTypePtr)); /* 410 */
Tcl_DriverHandlerProc * (*tcl_ChannelHandlerProc) _ANSI_ARGS_((Tcl_ChannelType * chanTypePtr)); /* 411 */
- int (*tcl_JoinThread) _ANSI_ARGS_((Tcl_ThreadId id, int* result)); /* 412 */
+ int (*tcl_JoinThread) _ANSI_ARGS_((Tcl_ThreadId threadId, int* result)); /* 412 */
int (*tcl_IsChannelShared) _ANSI_ARGS_((Tcl_Channel channel)); /* 413 */
int (*tcl_IsChannelRegistered) _ANSI_ARGS_((Tcl_Interp* interp, Tcl_Channel channel)); /* 414 */
void (*tcl_CutChannel) _ANSI_ARGS_((Tcl_Channel channel)); /* 415 */
diff --git a/mac/tclMacThrd.c b/mac/tclMacThrd.c
index 3fdafe3..dec4842 100644
--- a/mac/tclMacThrd.c
+++ b/mac/tclMacThrd.c
@@ -168,17 +168,17 @@ Tcl_CreateThread(idPtr, proc, clientData, stackSize, flags)
*/
int
-Tcl_JoinThread(id, result)
- Tcl_ThreadId id; /* Id of the thread to wait upon */
- int* result; /* Reference to the storage the result
- * of the thread we wait upon will be
- * written into. */
+Tcl_JoinThread(threadId, result)
+ Tcl_ThreadId threadId; /* Id of the thread to wait upon */
+ int* result; /* Reference to the storage the result
+ * of the thread we wait upon will be
+ * written into. */
{
if (!TclMacHaveThreads()) {
return TCL_ERROR;
}
- return TclJoinThread (id, result);
+ return TclJoinThread (threadId, result);
}
/*
diff --git a/unix/tclUnixThrd.c b/unix/tclUnixThrd.c
index d5f1e54..515ef4f 100644
--- a/unix/tclUnixThrd.c
+++ b/unix/tclUnixThrd.c
@@ -161,16 +161,16 @@ Tcl_CreateThread(idPtr, proc, clientData, stackSize, flags)
*/
int
-Tcl_JoinThread(id, state)
- Tcl_ThreadId id; /* Id of the thread to wait upon */
- int* state; /* Reference to the storage the result
- * of the thread we wait upon will be
- * written into. */
+Tcl_JoinThread(threadId, state)
+ Tcl_ThreadId threadId; /* Id of the thread to wait upon */
+ int* state; /* Reference to the storage the result
+ * of the thread we wait upon will be
+ * written into. */
{
#ifdef TCL_THREADS
int result;
- result = pthread_join ((pthread_t) id, (VOID**) state);
+ result = pthread_join ((pthread_t) threadId, (VOID**) state);
return (result == 0) ? TCL_OK : TCL_ERROR;
#else
return TCL_ERROR;
diff --git a/win/tclWinThrd.c b/win/tclWinThrd.c
index 494b060..b6f7a89 100644
--- a/win/tclWinThrd.c
+++ b/win/tclWinThrd.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclWinThrd.c,v 1.25 2003/04/25 20:03:24 andreas_kupries Exp $
+ * RCS: @(#) $Id: tclWinThrd.c,v 1.26 2003/05/13 10:16:17 mistachkin Exp $
*/
#include "tclWinInt.h"
@@ -187,13 +187,13 @@ Tcl_CreateThread(idPtr, proc, clientData, stackSize, flags)
*/
int
-Tcl_JoinThread(id, result)
- Tcl_ThreadId id; /* Id of the thread to wait upon */
- int* result; /* Reference to the storage the result
- * of the thread we wait upon will be
- * written into. */
+Tcl_JoinThread(threadId, result)
+ Tcl_ThreadId threadId; /* Id of the thread to wait upon */
+ int* result; /* Reference to the storage the result
+ * of the thread we wait upon will be
+ * written into. */
{
- return TclJoinThread (id, result);
+ return TclJoinThread (threadId, result);
}
/*