Home Comments

Feature request: Mutex classes

stephanstephan Member Stephan StapelOrganization: Stephan StapelProject: BristolNG

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.




  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    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().
Sign In or Register to comment.