TSR's
Joel Sherrill <joel@OARcorp.com>
joel.sherrill at OARcorp.com
Fri May 20 19:02:11 UTC 2005
Leon Pollak wrote:
>>>When this happens my program crashes in the internal error function. Am I allowed to
>>>get the network semaphore from inside the TSR?
>>
>>no, no, no and no. :)
>>
>>If you do not acquire the network semaphore, the caller will block. A
>>TSR runs in the clock tick ISR -- not a task. That error check is in
>>there just to prevent the weird errors you would get if you blocked in
>>the middle of an ISR.
>
> Well, just to check for sure...
> This is correct only for the case when TSR's are run not by timer server, am I correct?
Technically yes, But you need to be careful to ensure you are not
blocking the timer server for long periods of time and skewing any other
server based TSRs you might have
--joel
More information about the users
mailing list