mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-31 20:02:42 +00:00
Make main_thread_id private
* src/sysdep.c (main_thread_id) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Now static.
This commit is contained in:
parent
9982be8f01
commit
d87bdd2f8a
@ -1671,7 +1671,7 @@ emacs_sigaction_init (struct sigaction *action, signal_handler_t handler)
|
||||
}
|
||||
|
||||
#ifdef FORWARD_SIGNAL_TO_MAIN_THREAD
|
||||
pthread_t main_thread_id;
|
||||
static pthread_t main_thread_id;
|
||||
#endif
|
||||
|
||||
/* SIG has arrived at the current process. Deliver it to the main
|
||||
|
@ -32,7 +32,6 @@ extern void unblock_tty_out_signal (sigset_t const *);
|
||||
|
||||
#ifdef HAVE_PTHREAD
|
||||
#include <pthread.h>
|
||||
extern pthread_t main_thread_id;
|
||||
/* If defined, asynchronous signals delivered to a non-main thread are
|
||||
forwarded to the main thread. */
|
||||
#define FORWARD_SIGNAL_TO_MAIN_THREAD
|
||||
|
Loading…
Reference in New Issue
Block a user