The thing is I’ve been using the lock statement to protect a critical part of my code, but now, I realize I could allow concurrent execution of that critical code is some conditions are met.
Is there a way to condition the lock?
The thing is I’ve been using the lock statement to protect a critical part
Share
1 Answer