BloombergLP::bsls::SpinLockGuard::release

Stop managing the lock and return the pointer provided at construction.

Synopsis

Declared in <bsls_spinlock.h>

SpinLock*
release();

Description

Return the lock pointer that was provided at construction and stop managing it. (Subsequent calls to release() will return null and the destruction of this object will not affect the lock.) The lock status is not changed by this call.

Return Value

lock pointer provided at construction