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

yield and sleep not working together

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 Treck stack, xilkernel is having all kinds of problems usually ending up dead in the scheduler.  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


Message Edited by swally on 03-05-2008 04:24 AM
0 Kudos
0 Replies