aboutsummaryrefslogtreecommitdiffstats
path: root/src/emacs.c
diff options
context:
space:
mode:
authorTom Tromey2012-08-15 13:03:17 -0600
committerTom Tromey2012-08-15 13:03:17 -0600
commit14b3dc5e4f2cdefde1ba04ddd3525115e7ca7dce (patch)
treeaf04882e838fea858d9672dac6c19eab374505b9 /src/emacs.c
parent2d525b793f1b0fd2b6f66881310bec8684bceffe (diff)
downloademacs-14b3dc5e4f2cdefde1ba04ddd3525115e7ca7dce.tar.gz
emacs-14b3dc5e4f2cdefde1ba04ddd3525115e7ca7dce.zip
This introduces the low-level system threading support. It also adds
the global lock. The low-level support is a bit over-eager, in that even at the end of the present series, it will not all be used. I think thiat is ok since I plan to use it all eventually -- in particular for the emacs lisp mutex implementation. I've only implemented the pthreads-based version. I think it should be relatively clear how to port this to other systems, though. I'd also like to do a "no threads" port that will turn most things into no-ops, and have thread-creation fail. I was thinking perhaps I'd make a future (provide 'threads) conditional on threads actually working. One other minor enhancement available here is to make it possible to set the name of the new thread at the OS layer. That way gdb, e.g., could display thread names.
Diffstat (limited to 'src/emacs.c')
-rw-r--r--src/emacs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/emacs.c b/src/emacs.c
index e1acd365e29..443fe594795 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -1270,6 +1270,7 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem
1270 } 1270 }
1271 1271
1272 init_alloc (); 1272 init_alloc ();
1273 init_threads ();
1273 1274
1274 if (do_initial_setlocale) 1275 if (do_initial_setlocale)
1275 { 1276 {