Module: xenomai-head Branch: master Commit: 5456070c56b6f5ec44ad569486399f001887650a URL: http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=5456070c56b6f5ec44ad569486399f001887650a
Author: Jan Kiszka <jan.kis...@siemens.com> Date: Wed Jun 3 15:53:46 2009 +0200 RTDM: Avoid namespace pollution in RTDM_EXECUTE_ATOMICALLY Signed-off-by: Jan Kiszka <jan.kis...@siemens.com> --- include/rtdm/rtdm_driver.h | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/rtdm/rtdm_driver.h b/include/rtdm/rtdm_driver.h index 5fc8b57..7f1f3f8 100644 --- a/include/rtdm/rtdm_driver.h +++ b/include/rtdm/rtdm_driver.h @@ -595,13 +595,13 @@ int rtdm_select_bind(int fd, rtdm_selector_t *selector, <LEAVE_ATOMIC_SECTION> \ } #else /* This is how it really works */ -#define RTDM_EXECUTE_ATOMICALLY(code_block) \ -{ \ - spl_t s; \ - \ - xnlock_get_irqsave(&nklock, s); \ - code_block; \ - xnlock_put_irqrestore(&nklock, s); \ +#define RTDM_EXECUTE_ATOMICALLY(code_block) \ +{ \ + spl_t __rtdm_s; \ + \ + xnlock_get_irqsave(&nklock, __rtdm_s); \ + code_block; \ + xnlock_put_irqrestore(&nklock, __rtdm_s); \ } #endif /** @} Global Lock across Scheduler Invocation */ _______________________________________________ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git