aboutsummaryrefslogtreecommitdiffstats
path: root/src/thread.c
diff options
context:
space:
mode:
authorTom Tromey2013-08-26 08:46:30 -0600
committerTom Tromey2013-08-26 08:46:30 -0600
commit2ee7755c8d35aba1d598c9baa910bd5af228f095 (patch)
tree0eb4817057fef64fb07767f8b025b4d47fb80cb6 /src/thread.c
parent793ea5055aea85ff9227e1bf0c84ab37edba7201 (diff)
downloademacs-2ee7755c8d35aba1d598c9baa910bd5af228f095.tar.gz
emacs-2ee7755c8d35aba1d598c9baa910bd5af228f095.zip
implement --enable-threads and a thread-less mode
Diffstat (limited to 'src/thread.c')
-rw-r--r--src/thread.c41
1 files changed, 23 insertions, 18 deletions
diff --git a/src/thread.c b/src/thread.c
index 4c6b6543c84..59845b6524f 100644
--- a/src/thread.c
+++ b/src/thread.c
@@ -937,24 +937,29 @@ init_threads (void)
937void 937void
938syms_of_threads (void) 938syms_of_threads (void)
939{ 939{
940 defsubr (&Sthread_yield); 940#ifndef THREADS_ENABLED
941 defsubr (&Smake_thread); 941 if (0)
942 defsubr (&Scurrent_thread); 942#endif
943 defsubr (&Sthread_name); 943 {
944 defsubr (&Sthread_signal); 944 defsubr (&Sthread_yield);
945 defsubr (&Sthread_alive_p); 945 defsubr (&Smake_thread);
946 defsubr (&Sthread_join); 946 defsubr (&Scurrent_thread);
947 defsubr (&Sthread_blocker); 947 defsubr (&Sthread_name);
948 defsubr (&Sall_threads); 948 defsubr (&Sthread_signal);
949 defsubr (&Smake_mutex); 949 defsubr (&Sthread_alive_p);
950 defsubr (&Smutex_lock); 950 defsubr (&Sthread_join);
951 defsubr (&Smutex_unlock); 951 defsubr (&Sthread_blocker);
952 defsubr (&Smutex_name); 952 defsubr (&Sall_threads);
953 defsubr (&Smake_condition_variable); 953 defsubr (&Smake_mutex);
954 defsubr (&Scondition_wait); 954 defsubr (&Smutex_lock);
955 defsubr (&Scondition_notify); 955 defsubr (&Smutex_unlock);
956 defsubr (&Scondition_mutex); 956 defsubr (&Smutex_name);
957 defsubr (&Scondition_name); 957 defsubr (&Smake_condition_variable);
958 defsubr (&Scondition_wait);
959 defsubr (&Scondition_notify);
960 defsubr (&Scondition_mutex);
961 defsubr (&Scondition_name);
962 }
958 963
959 Qthreadp = intern_c_string ("threadp"); 964 Qthreadp = intern_c_string ("threadp");
960 staticpro (&Qthreadp); 965 staticpro (&Qthreadp);