Module: xenomai-forge
Branch: rtdm-api-waitqueues
Commit: ed167e88613deb825edf6a22ff3fc7dc0ccbbeef
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=ed167e88613deb825edf6a22ff3fc7dc0ccbbeef

Author: Philippe Gerum <r...@xenomai.org>
Date:   Thu Apr 24 10:17:11 2014 +0200

copperplate/threadobj: define implementation-specific rrb signal

---

 include/mercury/boilerplate/signal.h |    1 +
 lib/copperplate/threadobj.c          |    4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/mercury/boilerplate/signal.h 
b/include/mercury/boilerplate/signal.h
index 996711f..ac7b1c7 100644
--- a/include/mercury/boilerplate/signal.h
+++ b/include/mercury/boilerplate/signal.h
@@ -27,6 +27,7 @@
 #define SIGNOTIFY      (SIGRTMIN + 8) /* Internal notification */
 #define SIGRELS                (SIGRTMIN + 9) /* Syscall abort */
 #define SIGWAKEUP      (SIGRTMIN + 10) /* Sleep abort */
+#define SIGRRB         (SIGRTMIN + 11) /* Round-robin event */
 
 #define SIGSAFE_LOCK_ENTRY(__safelock)                                 \
        do {                                                            \
diff --git a/lib/copperplate/threadobj.c b/lib/copperplate/threadobj.c
index a17870c..f4eb8cc 100644
--- a/lib/copperplate/threadobj.c
+++ b/lib/copperplate/threadobj.c
@@ -445,7 +445,7 @@ static inline void pkg_init_corespec(void)
        sigaction(SIGRELS, &sa, NULL);
        sigaction(SIGWAKEUP, &sa, NULL);
        sa.sa_handler = roundrobin_handler;
-       sigaction(SIGVTALRM, &sa, NULL);
+       sigaction(SIGRRB, &sa, NULL);
 
        notifier_pkg_init();
 }
@@ -518,7 +518,7 @@ static inline int threadobj_setup_corespec(struct threadobj 
*thobj)
        /*
         * Create the per-thread round-robin timer.
         */
-       sev.sigev_signo = SIGVTALRM;
+       sev.sigev_signo = SIGRRB;
        ret = timer_create(CLOCK_THREAD_CPUTIME_ID, &sev,
                           &thobj->core.rr_timer);
        if (ret) {


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to