|
|
| Author |
Message |
Tim
Joined: 27 Feb 2010
Posts: 6
|
|
Posted: 13 March 2010, 2:35 AM Post subject: Force an interval expiration |
|
|
| I am using the the command "SetInterval(1)" to force an interval expiration on a task using WaitForInterval. However, this causes a delay of up to 1 RTC tick before the task resumes. Is there a way I can force an immediate interval expiration? |
|
| Back to top |
|
 |
dkinzer Site Admin
Joined: 03 Sep 2005
Posts: 2499
Location: Portland, OR
|
|
Posted: 13 March 2010, 2:56 AM Post subject: Re: Force an interval expiration |
|
|
| Tim wrote: | | Is there a way I can force an immediate interval expiration? | I suspect that ResumeTask() will serve your purpose. You'll have to pass the task stack of the task that is awaiting the interval expiration (unless it is the Main() task). |
|
| Back to top |
|
 |
Tim
Joined: 27 Feb 2010
Posts: 6
|
|
Posted: 13 March 2010, 3:04 AM Post subject: |
|
|
Aha! Thats what I wanted. Not sure how I missed that function. I'm still new to working with tasks.
Thank you much. |
|
| Back to top |
|
 |
|