writer_lock


Description:

public void writer_lock ()

Obtain a write lock on this.

If another thread currently holds a read or write lock on this, the current thread will block until all other threads have dropped their locks on this.

Calling writer_lock while the current thread already owns a read or write lock on this leads to undefined behaviour.

Parameters:

this

a RWLock