Can anyone give me the code example when i need to use Rlock
instead of simple lock
I am not able to find the use case when i need Rlock
I have read this but could not get the actual use of that
Normal Lock objects cannot be acquired more than once, even by the same thread. This can introduce undesirable side-effects if a lock is accessed by more than one function in the same call chain.