writer_lock
Description:
public void writer_lock ()
Locks this for writing.
Note:
Use writer_lock instead
If this is already locked for writing or reading by other threads, this function will block until this is completely unlocked and then lock this for writing. While this functions waits to lock this, no other thread can lock this for reading. When this is locked for writing, no other thread can lock this (neither for reading nor writing). This lock has to be unlocked by writer_unlock.
Parameters:
this |
a StaticRWLock to lock for writing |