trylock


Description:

public bool trylock ()

Tries to lock this.

Note:

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.

Parameters:

this

a StaticRecMutex to lock.

Returns:

true, if this could be locked.