[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] m-block timeouts, time passed, or pause?
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] m-block timeouts, time passed, or pause? |
Date: |
Mon, 21 Apr 2008 20:08:56 -0700 |
User-agent: |
Mutt/1.5.17 (2007-11-01) |
On Mon, Apr 21, 2008 at 10:57:25PM -0400, George Nychis wrote:
> Is there any way to get an approximate amount of time that has elapsed
> since a timeout has been scheduled? Or better yet, a way to pause a timer?
Nope.
> This is extremely useful for backoff periods in MAC contention protocols.
> Where, for instance, the timer is only decremented when the channel is
> considered idle. The best method would be a way to pause it. The
> alternative would be to find the time passed, cancel it, and then when the
> channel becomes idle to schedule another timer with the amount of remaining
> time.
How often are you checking for channel idle? Couldn't you just cancel
and schedule a new one each time you check for channel idle?
> After checking mb_mblock.h, I don't think any of this is readily
> available... can either of these can be simply implemented? If so, can you
> pass along some advice? :)
>
> Thanks!
> George
Eric