Can I interrupt function if it is executes for too long?


i have problem described here: http://stackoverflow.com/questions/10391845/can-i-interrupt-function-if-it-is-executed-for-too-long

a function in third party library hangs, , want break out of if executes long.

in c++ people recommending use of signals, alarm() function. there arduino version of this?

also yes understand implications of ending function half way through etc, (hopefully) troubleshooting method. i'm trying find out if possible right now.

cheers,
woody

quote
is there arduino version of this?
no. signals way 2 threads communicate. since arduino single-threaded system, there no need 1 thread tell something.

quote
i'm trying find out if possible right now.
you need write mysterious function hangs execute n milliseconds/seconds/minutes/hours/days/weeks unless finishes sooner that.



Arduino Forum > Using Arduino > Programming Questions > Can I interrupt function if it is executes for too long?


arduino

Comments

Popular posts from this blog

DHT11 Time out error using v0.4.1library

Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

Arduino Uno + KTY81/210 temperature sensor