Re-Scheduling without waiting

Task related topics

Re-Scheduling without waiting

Postby Brian » Thu Oct 10, 2013 1:00 pm

If I want to simply re-schedule a task to re-run as soon as possible, assuming no higher priority tasks need to run, can I just do this?

Code: Select all
void task(void) {
    task_open();
    while(1) {
        ...
        ...
        OS_SCHEDULE;
    }
    task_close();
}
Brian
 
Posts: 1
Joined: Thu Oct 10, 2013 12:55 pm

Re: Re-Scheduling without waiting

Postby peter » Sat Oct 26, 2013 5:38 pm

Yes
peter
Site Admin
 
Posts: 21
Joined: Wed Mar 07, 2012 9:32 am

Re: Re-Scheduling without waiting

Postby electropw » Mon May 29, 2017 2:09 am

How can we do this now in version 4.1.0?
electropw
 
Posts: 2
Joined: Mon May 29, 2017 2:01 am

Re: Re-Scheduling without waiting

Postby electropw » Sun Jun 04, 2017 9:49 pm

Its ok found it.
just use "OS_SCHEDULE(0);" instead.
Thanks
electropw
 
Posts: 2
Joined: Mon May 29, 2017 2:01 am


Return to Tasks

Who is online

Users browsing this forum: No registered users and 1 guest

cron