Tries to lock this.
Use trylock
If this is already locked by another thread, it immediately returns false . Otherwise it locks this and returns true. If this is already locked by the calling thread, this functions increases the depth of this and immediately returns true.
this |
a StaticRecMutex to lock. |
true, if this could be locked. |