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

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

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

Postby andrew_tholt » Tue Jun 09, 2015 2:33 pm

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: 13524
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 861 times
Been thanked: 743 times
Contact:

Re: nilRTOS, is there an equivalent to yield ?

Postby Giovanni » Tue Jun 09, 2015 4:02 pm

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


Return to “ChibiOS/NIL”

Who is online

Users browsing this forum: No registered users and 1 guest