]> git.eshelyaron.com Git - emacs.git/commit
Fix threads on NS (bug#25265)
authorAlan Third <alan@idiocy.org>
Sat, 1 Jul 2017 11:58:49 +0000 (12:58 +0100)
committerAlan Third <alan@idiocy.org>
Sat, 1 Jul 2017 11:58:49 +0000 (12:58 +0100)
commit0ad5fd4b6cac1824e50e5e8c1a43878825e7d3de
tree0a8247163987e1c146583554fdbe508a435f6705
parentff6d090ff73af57d6d489bc221d8f9eb6c0da633
Fix threads on NS (bug#25265)

src/nsterm.h (ns_select): Compiler doesn't like sigmask being const.
(ns_run_loop_break) [HAVE_PTHREAD]: New function.
src/nsterm.m (ns_select): Call thread_select from within ns_select.
(ns_run_loop_break) [HAVE_PTHREAD]: New function.
(ns_send_appdefined): Don't wait for main thread when sending app
defined event.
src/process.c (wait_reading_process_output): Call thread_select from
within ns_select.
src/systhread.c (sys_cond_broadcast) [HAVE_NS]: Break ns_select out of
its event loop using ns_run_loop_break.
src/nsterm.h
src/nsterm.m
src/process.c
src/systhread.c