Concept Flow - Reentrancy guard pattern
Function call starts
Check if locked?
Yes→Reject call
No
Set locked = true
Execute function body
Set locked = false
Function call ends
This flow shows how the reentrancy guard prevents a function from being called again before the first call finishes by using a lock flag.