nilRTOS, is there an equivalent to yield ? Topic is solved

Discussions and support about ChibiOS/NIL, the almost nil RTOS.
Post Reply
andrew_tholt
Posts: 2
Joined: Sat May 30, 2015 3:05 pm

nilRTOS, is there an equivalent to yield ?

Post by andrew_tholt »

Hi,

I'm looking for a way for a thread to basically say, "I'm done for now somebody else can run" without a delay. In co-op systems this would be 'yield' or 'pause'.

Or does reschedule do this ?

Thanks,
Andrew
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: nilRTOS, is there an equivalent to yield ?

Post by Giovanni »

Hi,

There is no need, NIL is preemptive and there are no threads at same priority. When you go to sleep you yield implicitly.

Giovanni
Post Reply