1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-08 15:35:02 +00:00

Revert "Make block_atimers unblock_atimers extern"

This reverts commit 4266794ceb30ba8c3465fb8568695f53b676247d.
This commit is contained in:
Andrea Corallo 2019-09-01 11:07:11 +02:00 committed by Andrea Corallo
parent 4c03c46946
commit 3b696d1cdc
2 changed files with 16 additions and 19 deletions

View File

@ -65,6 +65,22 @@ enum { timerfd = -1 };
# endif
#endif
/* Block/unblock SIGALRM. */
static void
block_atimers (sigset_t *oldset)
{
sigset_t blocked;
sigemptyset (&blocked);
sigaddset (&blocked, SIGALRM);
sigaddset (&blocked, SIGINT);
pthread_sigmask (SIG_BLOCK, &blocked, oldset);
}
static void
unblock_atimers (sigset_t const *oldset)
{
pthread_sigmask (SIG_SETMASK, oldset, 0);
}
/* Function prototypes. */
@ -149,23 +165,6 @@ start_atimer (enum atimer_type type, struct timespec timestamp,
return t;
}
/* Block/unblock SIGALRM. */
void
block_atimers (sigset_t *oldset)
{
sigset_t blocked;
sigemptyset (&blocked);
sigaddset (&blocked, SIGALRM);
sigaddset (&blocked, SIGINT);
pthread_sigmask (SIG_BLOCK, &blocked, oldset);
}
void
unblock_atimers (sigset_t const *oldset)
{
pthread_sigmask (SIG_SETMASK, oldset, 0);
}
/* Cancel and free atimer TIMER. */

View File

@ -71,8 +71,6 @@ struct atimer
struct atimer *start_atimer (enum atimer_type, struct timespec,
atimer_callback, void *);
void block_atimers (sigset_t *);
void unblock_atimers (sigset_t const *);
void cancel_atimer (struct atimer *);
void do_pending_atimers (void);
void init_atimer (void);