summaryrefslogtreecommitdiffstats
path: root/generic/tcl.h
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2018-05-24 12:46:07 (GMT)
committerdgp <dgp@users.sourceforge.net>2018-05-24 12:46:07 (GMT)
commit2db0464fd943cc115d69a8e62696704759a88ed2 (patch)
tree7c0ec290925e9cd87bdfa343704395022d980571 /generic/tcl.h
parent2a340ce4c19c7e7ad149a1263f169a1749c3465c (diff)
parentedb38932e8f071b1326515067d41bc060807dec2 (diff)
downloadtcl-2db0464fd943cc115d69a8e62696704759a88ed2.zip
tcl-2db0464fd943cc115d69a8e62696704759a88ed2.tar.gz
tcl-2db0464fd943cc115d69a8e62696704759a88ed2.tar.bz2
merge 8.7
Diffstat (limited to 'generic/tcl.h')
-rw-r--r--generic/tcl.h32
1 files changed, 5 insertions, 27 deletions
diff --git a/generic/tcl.h b/generic/tcl.h
index 09aab9b..fefd5ca 100644
--- a/generic/tcl.h
+++ b/generic/tcl.h
@@ -89,6 +89,10 @@ extern "C" {
# define JOIN(a,b) JOIN1(a,b)
# define JOIN1(a,b) a##b
#endif
+
+#ifndef TCL_THREADS
+# define TCL_THREADS 1
+#endif
#endif /* !TCL_NO_DEPRECATED */
/*
@@ -103,15 +107,10 @@ extern "C" {
#ifndef RC_INVOKED
/*
- * Special macro to define mutexes, that doesn't do anything if we are not
- * using threads.
+ * Special macro to define mutexes.
*/
-#ifdef TCL_THREADS
#define TCL_DECLARE_MUTEX(name) static Tcl_Mutex name;
-#else
-#define TCL_DECLARE_MUTEX(name)
-#endif
/*
* Tcl's public routine Tcl_FSSeek() uses the values SEEK_SET, SEEK_CUR, and
@@ -2560,27 +2559,6 @@ EXTERN void Tcl_GetMemoryInfo(Tcl_DString *dsPtr);
/*
*----------------------------------------------------------------------------
- * Macros that eliminate the overhead of the thread synchronization functions
- * when compiling without thread support.
- */
-
-#ifndef TCL_THREADS
-#undef Tcl_MutexLock
-#define Tcl_MutexLock(mutexPtr)
-#undef Tcl_MutexUnlock
-#define Tcl_MutexUnlock(mutexPtr)
-#undef Tcl_MutexFinalize
-#define Tcl_MutexFinalize(mutexPtr)
-#undef Tcl_ConditionNotify
-#define Tcl_ConditionNotify(condPtr)
-#undef Tcl_ConditionWait
-#define Tcl_ConditionWait(condPtr, mutexPtr, timePtr)
-#undef Tcl_ConditionFinalize
-#define Tcl_ConditionFinalize(condPtr)
-#endif /* TCL_THREADS */
-
-/*
- *----------------------------------------------------------------------------
* Deprecated Tcl functions:
*/