reentrantsafe
Reentrantsafe is a designation used in software development to describe a component, typically a function, that can be safely called again before its previous invocation has finished. The reentrancy property is important in contexts where code may be interrupted by an asynchronous event such as a hardware interrupt, a signal handler, or concurrent threads.
To be reentrantly safe, a function should not rely on non-constant, globally shared state without proper synchronization.
Relationship to thread safety and async-signal safety: Reentrancy is related but distinct from thread-safety. A reentrant
Examples: A function that uses a global counter without synchronization would not be reentrant. A function