]> git.eshelyaron.com Git - emacs.git/commit
Support threads in modules
authorPhilipp Stephani <phst@google.com>
Sat, 22 Apr 2017 14:51:44 +0000 (16:51 +0200)
committerPhilipp Stephani <phst@google.com>
Sun, 11 Jun 2017 13:24:05 +0000 (15:24 +0200)
commit8160c7d914882b40badf9eb8e4792da1b313745e
treeff2dfc4192fe6f677f36b3b785b84d87abb2935d
parent9a86966edb5ce760976bd7ce36c92e3b4eb0705d
Support threads in modules

Rather than checking for the main thread, check for the current
thread.

* emacs-module.c (check_thread): New function.
(MODULE_FUNCTION_BEGIN_NO_CATCH, module_get_environment)
(module_non_local_exit_check, module_non_local_exit_clear)
(module_non_local_exit_get, module_non_local_exit_signal)
(module_non_local_exit_throw, module_is_not_nil, module_eq): Use it.
src/emacs-module.c