Pumpkin, Inc.

Pumpkin User Forums

OS_Replace() vs. OSStartTask and OSStopTask()

If you can't make Salvo do what you want it to do, post it here.

OS_Replace() vs. OSStartTask and OSStopTask()

Postby samuel » Mon Feb 12, 2007 5:07 am

Using Salvo v4.0.0. I've read with OS_Replace() it is valid for 2 tasks to have the same TCBP. Is the same true with OSStartTask() and OSStopTask(). Can 2 tasks that never run at the same time have the same TCBP and be started and stopped via these calls? The description of the functions doesn't explicitly say...
samuel
 
Posts: 22
Joined: Sun Oct 08, 2006 11:00 pm

Re: OS_Replace() vs. OSStartTask and OSStopTask()

Postby aek » Tue Feb 13, 2007 9:13 am

Yes, certainly.

Each instance of a task is tied to the associated tcb.

IOW, you can only have as many defined tasks at once as you have tcbs.

Switching two tasks back and forth using a single tcb is fine as long as you re-create each task on the same tcb.

------------------

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm


Return to Coding

Who is online

Users browsing this forum: No registered users and 3 guests