trylock


Description:

public bool trylock ()

Tries to lock this.

If this is already locked by another thread, it immediately returns false. Otherwise it locks this and returns true.

Parameters:

this

a RecMutex

Returns:

true if this could be locked