Page 1 of 1

One task be able to control other tasks

PostPosted: Thu Dec 21, 2000 1:13 am
by aek
OSRtnPrio(), OSRtnPrioTask(), OSRtnState() and OSRtnStateTask() will be included in the v2.2 release.

Re: One task be able to control other tasks

PostPosted: Thu Dec 21, 2000 10:22 am
by Salvo Tech Support
Currently, you can use OSCreateTask() to create tasks and OSStartTask() to start tasks.

We will be implementing OSPrioTask(), OSStopTask(), OSDestroyTask(),and functions to get a tasks's priority and state in a future release.


Re: One task be able to control other tasks

PostPosted: Thu Dec 21, 2000 12:56 pm
by NoMore
It would be nice if one task (or main loop) can influence other task(s); Get their state, priority, change their priority, create, start, stop, destroy other tasks. Simple e.g. one task is blinking LED (xor port bit and OS_Delay) other task can start or stop that task when it's desired to turn blinking on or off.

Tnx&Regards from NM


Re: One task be able to control other tasks

PostPosted: Fri Dec 22, 2000 12:38 pm
by NoMore
I think OSRtnState() (which is meant to return the state of the currently running task, i suspect) is not needed because it will always return OSTASK_RUNNING

Re: One task be able to control other tasks

PostPosted: Fri Dec 22, 2000 12:55 pm
by aek
very astute ... in fact, the source code is commented to this very effect. It's included mainly for completeness (it's just one line of C), but I suspect it might turn out to be useful in the creation and testing of new context switchers ...

Re: One task be able to control other tasks

PostPosted: Thu Jan 04, 2001 5:46 am
by aek
OSDestroyTask(), OSPrioTask() and OSStopTask() have been added to the v2.2 release.