]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert "Make block_atimers unblock_atimers extern"
authorAndrea Corallo <andrea_corallo@yahoo.it>
Sun, 1 Sep 2019 09:07:11 +0000 (11:07 +0200)
committerAndrea Corallo <akrl@sdf.org>
Wed, 1 Jan 2020 10:37:41 +0000 (11:37 +0100)
This reverts commit 4266794ceb30ba8c3465fb8568695f53b676247d.

src/atimer.c
src/atimer.h

index 4b0cab1453071d58adab1f144d09bd5e7c0c1379..a7daf9dcf5b42c8857e583e510da5d0294f758fd 100644 (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.  */
 
index 58209168afb0cd2bcb1559bc0fc68acd54d44438..660d77c9392ef739279f6fccf2722b4f7a5fad33 100644 (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);