writer_trylock
Description:
Tries to lock this for writing.
Note:
Use writer_trylock instead
If this is already locked (for either reading or writing) by another thread, it immediately returns false. Otherwise it locks this for writing and returns true. This lock has to be unlocked by writer_unlock.
Parameters:
this |
a StaticRWLock to lock for writing |
Returns:
true, if this could be locked for writing |