]> git.eshelyaron.com Git - emacs.git/commit
Make error checking for thread functions stricter.
authorPhilipp Stephani <phst@google.com>
Sat, 2 Jun 2018 20:35:22 +0000 (22:35 +0200)
committerPhilipp Stephani <phst@google.com>
Sat, 9 Jun 2018 16:47:10 +0000 (18:47 +0200)
commitb4dcac2d6ae376788dca11b88b874a9ecaf986df
treee6185efc4660b5192f5c6c78017768e18ac9440b
parentca369a8ca67a4cb279a5412cca36109e719a520e
Make error checking for thread functions stricter.

* src/systhread.c (sys_thread_create): Change return type to bool.
Check for errors returned by pthread_attr_setstacksize and
pthread_attr_destroy.
(sys_mutex_init): Abort on errors.  Enable mutex checks when checking
is enabled.
(sys_cond_init): Abort on errors.
(sys_mutex_lock, sys_mutex_unlock, sys_cond_wait)
(sys_cond_signal, sys_cond_broadcast, sys_cond_destroy): Check for
errors in debug mode.
src/systhread.c
src/systhread.h