writerTrylock

Tries to lock @lock for writing. If @lock is already locked (for either reading or writing) by another thread, it immediately returns false. Otherwise it locks @lock for writing and returns true. This lock has to be unlocked by g_static_rw_lock_writer_unlock().

Return

true, if @lock could be locked for writing