This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

How to reset the timeout on a thread waiting for a flag


Hi,

Here is what i want to do:

I have a thread starting an operation and waiting for it to finish. The
operation result in a series of interrupts. The thread waits on a flag, and
the ISR will eventually set the flag when the operation is done, to wake up
the thread. 

I also want a timeout. But not a total timeout value for the total operation
but a timeout based on the interrupt activity. ie if there is no more
interrupt for 1/2sec then i want to timeout.

So is ther any function to reset the thread timer. 

Thanks

-- 
Fabrice Gautier, 
Fabrice_Gautier@sdesigns.com

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]