Pumpkin, Inc.

Pumpkin User Forums

One task be able to control other tasks

Have an idea on how to make Salvo better? Post it here!

One task be able to control other tasks

Postby aek » Thu Dec 21, 2000 1:13 am

OSRtnPrio(), OSRtnPrioTask(), OSRtnState() and OSRtnStateTask() will be included in the v2.2 release.
-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Re: One task be able to control other tasks

Postby Salvo Tech Support » Thu Dec 21, 2000 10:22 am

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.

--------
Salvo Technical Support
Please request all tech support through the Forums.
Salvo Tech Support
 
Posts: 173
Joined: Sun Nov 19, 2000 12:00 am

Re: One task be able to control other tasks

Postby NoMore » Thu Dec 21, 2000 12:56 pm

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

NoMore
 
Posts: 11
Joined: Fri Dec 01, 2000 12:00 am

Re: One task be able to control other tasks

Postby NoMore » Fri Dec 22, 2000 12:38 pm

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
NoMore
 
Posts: 11
Joined: Fri Dec 01, 2000 12:00 am

Re: One task be able to control other tasks

Postby aek » Fri Dec 22, 2000 12:55 pm

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 ...
-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Re: One task be able to control other tasks

Postby aek » Thu Jan 04, 2001 5:46 am

OSDestroyTask(), OSPrioTask() and OSStopTask() have been added to the v2.2 release.
-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest

cron