cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
swally
Contributor
Contributor
7,631 Views
Registered: ‎02-25-2008

sleep and yield

Hi,
 
I'm running xilkernel with a microblaze on a spartan 3E.  I recently removed lwIP and have run into a strange problem in my project.  If I try to run two static threads with a yield in each of them and a call to sleep in a third thread, my task scheduler fails to return from the sleep call.   If I take out one of the yield calls it works most of the time.  When I try launch my new stack, xilkernel is having all kinds of problems usually ending up dead.  The problem appears to be in sched.c in a call to suspend which never returns true.  I've tried sys_sleep and that's even worse.
 
Steve
0 Kudos
1 Reply
mcgett
Xilinx Employee
Xilinx Employee
7,617 Views
Registered: ‎01-03-2008

Wrong forum this should be over in the Embedded Processing forum.
------Have you tried typing your question into Google? If not you should before posting.
Too many results? Try adding site:www.xilinx.com
0 Kudos