BloombergLP::bslmt::RWMutexImpl<Platform::PosixThreads>::lockWrite

Lock this readers-writer mutex for writing.

Synopsis

Declared in <bslmt_rwmutex.h>

void
lockWrite();

Description

If there are no active or pending locks on this mutex, lock this mutex for writing and return immediately. Otherwise, block until the write lock on this mutex is acquired. Use unlock to release the lock on this mutex. The behavior is undefined if this method is called from a thread that already has a lock on this mutex.