summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixNotfy.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-05-22 20:53:24 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-05-22 20:53:24 (GMT)
commitce025f259b91e61857e70c6690d5db631b5dc747 (patch)
treef175e43fb180d0b756186a839cbeee766ec8e27c /unix/tclUnixNotfy.c
parentf6af18a9476f566a34901b828e33f7141266174c (diff)
downloadtcl-ce025f259b91e61857e70c6690d5db631b5dc747.zip
tcl-ce025f259b91e61857e70c6690d5db631b5dc747.tar.gz
tcl-ce025f259b91e61857e70c6690d5db631b5dc747.tar.bz2
Simplify usage of TCL_THREAD, along the lines of [eeddb0693a950be980a66de3811630a00c7bab54|eeddb0693a]. Suggested by DKF
Diffstat (limited to 'unix/tclUnixNotfy.c')
-rw-r--r--unix/tclUnixNotfy.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/unix/tclUnixNotfy.c b/unix/tclUnixNotfy.c
index 6572b39..062d817 100644
--- a/unix/tclUnixNotfy.c
+++ b/unix/tclUnixNotfy.c
@@ -18,7 +18,7 @@
*/
static int FileHandlerEventProc(Tcl_Event *evPtr, int flags);
-#if defined(TCL_THREADS) && !TCL_THREADS
+#if !TCL_THREADS
# undef NOTIFIER_EPOLL
# undef NOTIFIER_KQUEUE
# define NOTIFIER_SELECT
@@ -106,7 +106,7 @@ Tcl_AlertNotifier(
return;
} else {
#ifdef NOTIFIER_SELECT
-#if !defined(TCL_THREADS) || TCL_THREADS
+#if TCL_THREADS
ThreadSpecificData *tsdPtr = clientData;
pthread_mutex_lock(&notifierMutex);
@@ -197,7 +197,7 @@ Tcl_ServiceModeHook(
return;
} else if (mode == TCL_SERVICE_ALL) {
#ifdef NOTIFIER_SELECT
-#if !defined(TCL_THREADS) || TCL_THREADS
+#if TCL_THREADS
StartNotifierThread("Tcl_ServiceModeHook");
#endif
#endif /* NOTIFIER_SELECT */
@@ -279,7 +279,7 @@ FileHandlerEventProc(
}
#ifdef NOTIFIER_SELECT
-#if !defined(TCL_THREADS) || TCL_THREADS
+#if TCL_THREADS
/*
*----------------------------------------------------------------------
*