We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello,
I am currently exploring the possibilities on how to solve this task: I need to create a scheduler which would be able to schedule a task or an action for a long period (hours, days) e.g. "task must be started after 10 days from now", hence my concern is the timing implementation.
If I decided to use RTX, is there any provided OS functionality I could leverage? I reckon RTX os_tmr_create and os_dly_wait are not meant for this.
Thank you!
G.
Well, the RTC or a timer is still just a variant of a "ticker". You still need to write code that compares the passing time with a (possibly sorted) list of actions and see when it is time to handle them.
Just that a RTC is normally serviced by an ISR - do you want the ISR to scan that list? It is normally better to have a task do it, too keep a minimum of time spent in interrupt handlers.