can someone please explain what a re-entrant function is?
you seem to stumble upon it sometimes and google wasn't too
helpfull
thanks :)
/btq
Printable View
can someone please explain what a re-entrant function is?
you seem to stumble upon it sometimes and google wasn't too
helpfull
thanks :)
/btq
Perhaps it's the same as recursive functions. Try searching for recursion.
I doubt it,Quote:
Perhaps it's the same as recursive functions. Try searching for recursion.
I think it has something to do with multiple threads or processes being able to call the same function simultaneously..
but thanks anyways :)
/btq
right out of the MSDN-reference...Quote:
reentrant code:
Code written so that it can be shared by several applications or threads within a single process simultaneously. When code is reentrant, one thread can safely interrupt the execution of another thread, execute its own code, and then return control to the first thread in such a way that the first thread does not fail or behave in an unexpected way.
ahh man! :rolleyes:
but still: what properties makes a function reentrant ?
that it only uses stack variables and no static data ?
/btq :)