G
Guillaume
Usage varies, but re-entrant is commonly used to refer to code that
Ok with that, I think we weren't using the same definition. Now this is
clearer.
By that definition, non-reentrant recursive functions are often
ill-written (making too much assumptions about how they are going to
run), but that could lead to another debate.
can safely be re-entered at any time (subject perhaps to locks). A
function that re-enters itself from certain fixed points (ie a recursive
function) may not be safely callable from another thread, and so may
not be re-entrant by this definition.
Ok with that, I think we weren't using the same definition. Now this is
clearer.
By that definition, non-reentrant recursive functions are often
ill-written (making too much assumptions about how they are going to
run), but that could lead to another debate.