Module: xenomai-gch
Branch: for-forge
Commit: 3d98843de047824f0d92dcc6a7157a9a8d1eac64
URL:    
http://git.xenomai.org/?p=xenomai-gch.git;a=commit;h=3d98843de047824f0d92dcc6a7157a9a8d1eac64

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Mon Jun 30 14:51:59 2014 +0200

lib/cobalt: fix pthread_create

to use the glibc sched_yield instead of the cobalt version when the created
thread and the creating thread have the same priority.

---

 lib/cobalt/thread.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/cobalt/thread.c b/lib/cobalt/thread.c
index 3a3f779..c46a051 100644
--- a/lib/cobalt/thread.c
+++ b/lib/cobalt/thread.c
@@ -163,7 +163,7 @@ sync_with_creator:
         * scheduling order.
         */
        if (param_ex.sched_priority == parent_prio)
-               __cobalt_sched_yield();
+               __STD(sched_yield());
 
        cobalt_thread_harden();
 


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

Reply via email to