@lock


Description:

public void @lock ()

Locks this.

If this is already locked by another thread, the current thread will block until this is unlocked by the other thread.

Mutex is neither guaranteed to be recursive nor to be non-recursive. As such, calling @lock on a Mutex that has already been locked by the same thread results in undefined behaviour (including but not limited to deadlocks).

Parameters:

this

a Mutex