Module: xenomai-3 Branch: master Commit: c8894bc29d13a816979fad642760b48f77bcd0cc URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=c8894bc29d13a816979fad642760b48f77bcd0cc
Author: Philippe Gerum <r...@xenomai.org> Date: Mon May 25 10:41:15 2015 +0200 cobalt/synch: restrict imbalance signal to debug mode --- include/cobalt/kernel/thread.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/cobalt/kernel/thread.h b/include/cobalt/kernel/thread.h index 335f2e1..6f6fad8 100644 --- a/include/cobalt/kernel/thread.h +++ b/include/cobalt/kernel/thread.h @@ -489,8 +489,9 @@ static inline int xnthread_put_resource(struct xnthread *thread) { if (xnthread_test_state(thread, XNWEAK|XNDEBUG)) { if (unlikely(thread->res_count == 0)) { - xnthread_signal(thread, SIGDEBUG, - SIGDEBUG_RESCNT_IMBALANCE); + if (IS_ENABLED(CONFIG_XENO_OPT_DEBUG_USER)) + xnthread_signal(thread, SIGDEBUG, + SIGDEBUG_RESCNT_IMBALANCE); return -EPERM; } thread->res_count--; _______________________________________________ Xenomai-git mailing list Xenomai-git@xenomai.org http://xenomai.org/mailman/listinfo/xenomai-git