Module: xenomai-3
Branch: master
Commit: 9000dc953d740fa4bf48db88d9c7c0b4de69407b
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=9000dc953d740fa4bf48db88d9c7c0b4de69407b

Author: Philippe Gerum <r...@xenomai.org>
Date:   Sun Mar 12 10:23:47 2017 +0100

cobalt/synch: add __must_check annotation to lock acquisition routines

---

 include/cobalt/kernel/synch.h |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/cobalt/kernel/synch.h b/include/cobalt/kernel/synch.h
index ffb884a..f419698 100644
--- a/include/cobalt/kernel/synch.h
+++ b/include/cobalt/kernel/synch.h
@@ -149,11 +149,11 @@ int xnsynch_wakeup_many_sleepers(struct xnsynch *synch, 
int nr);
 void xnsynch_wakeup_this_sleeper(struct xnsynch *synch,
                                 struct xnthread *sleeper);
 
-int xnsynch_acquire(struct xnsynch *synch,
-                   xnticks_t timeout,
-                   xntmode_t timeout_mode);
+int __must_check xnsynch_acquire(struct xnsynch *synch,
+                                xnticks_t timeout,
+                                xntmode_t timeout_mode);
 
-int xnsynch_try_acquire(struct xnsynch *synch);
+int __must_check xnsynch_try_acquire(struct xnsynch *synch);
 
 struct xnthread *xnsynch_release(struct xnsynch *synch,
                                 struct xnthread *thread);


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

Reply via email to