Re:Hell is a multi-threaded C++ program (2006)
by iainmerrick on Sunday September 03, 2017 @01:22AM
(#15159820)
No, that's not what re-entrant means. A re-entrant function can be called multiple times at the same time.
That could be from different threads or from an interrupt handler. It can even come up in single-threaded code: you call function A() which internally calls B() which results in a nested call to A(). If A is re-entrant that's safe.
That could be from different threads or from an interrupt handler. It can even come up in single-threaded code: you call function A() which internally calls B() which results in a nested call to A(). If A is re-entrant that's safe.