Pumpkin, Inc.

Pumpkin User Forums

query if task is waiting on EFlag

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

query if task is waiting on EFlag

Postby Mark M » Wed Mar 24, 2004 2:01 am

Is there an easy way to determine if a given task is waiting on a specific event flag?

My ISR is checking for an external event, and then sets EFlags for three separate tasks when it occurs. I only want these EFlags set when one specific task is waiting for that event.

In other words, I don't want to signal the other two tasks unless the first one is already waiting for that event.

Mark M
 
Posts: 3
Joined: Wed Mar 24, 2004 12:00 am

Re: query if task is waiting on EFlag

Postby Mark M » Tue Apr 13, 2004 6:23 am

*up*

anybody home?

Mark M
 
Posts: 3
Joined: Wed Mar 24, 2004 12:00 am

Re: query if task is waiting on EFlag

Postby aek » Tue Apr 13, 2004 8:04 am

Sorry -- for some reason we missed your original query.

Anyway, there is currently no way within the Salvo API to discern if a given task is waiting on a specific event flag.

To do it, you'd have to traverse the event flag's priority queue to search for the task, and no such user service currently exists. Any other method would require more RAM per task or event, which goes against Salvo's mission of minimal size.

if you have Salvo Pro, you might want to look at the internal function OSDelTaskQ() and create a new one that simply reports if a task is found in a queue, instead of deleting it from said queue.

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

-------
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 1 guest

cron