Skip to content
Prev 244135 / 398506 Next

Time out for a R Function

----------------------------------------
This seems to just check total time on each iteration.
Presumably for this you would be better off setting an
ieration limit, not a timeout. A watchdog timer to insure
that pretend task doesn't hang would need another thread
and you would either need the target task to check
a shared variable that you set from the watchdog or
you just kill the target thread from watchdog but
this may be hard to do in a way that lets you continue
in any meaningful way.