Archived
This forum has been archived. Please start a new discussion on GitHub.
Feature request: Mutex classes
Hi!
I have a little feature request for the various mutex classes. Could you please implement a locked() or isLocked() function for them? Currently, I use tryLock()/ unlock() to see if a mutex is locked. It works but doesn't look too nice.
A little function like locked() would help pretty much.
Thanks!
Stephan
I have a little feature request for the various mutex classes. Could you please implement a locked() or isLocked() function for them? Currently, I use tryLock()/ unlock() to see if a mutex is locked. It works but doesn't look too nice.
A little function like locked() would help pretty much.
Thanks!
Stephan
0
Comments
-
What do you need this for? I can't think of any scenario where isLocked() would be useful, as the status of the mutex could change right after the call to isLocked().0