Acquire the lock on this object. If the lock on this object is currently held by another thread, then suspend execution of the calling thread until the lock can be acquired. The behavior is undefined unless the calling thread does not already hold the lock on this object. Note that deadlock may result if this method is invoked while the calling thread holds the lock on the object.
Declared in <bsls_bsllockimpl_pthread.h>
void
lock();