[#BloombergLP-bsls-BslLock]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::BslLock
:relfileprefix: ../../
:mrdocs:

Light&hyphen;weight, portable wrapper of an OS&hyphen;level mutex&period;

== Synopsis

Declared in `&lt;bsls&lowbar;bsllock&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class BslLock;
----

== Description

This `class` implements a light&hyphen;weight, portable wrapper of an OS&hyphen;level mutex to support intra&hyphen;process synchronization&period; The mutex implemented by this class is _non_&hyphen;recursive&period; Note that `BslLock` is _not_ intended for direct use by client code&semi; it is meant for internal use only&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bsls/BslLock/2constructor.adoc[`BslLock`]         [.small]#[constructor]#
| Create a lock object initialized to the unlocked state&period;
| xref:BloombergLP/bsls/BslLock/2destructor.adoc[`&#126;BslLock`] [.small]#[destructor]#
| Destroy this lock object&period; The behavior is undefined unless this object is in the unlocked state&period;
| xref:BloombergLP/bsls/BslLock/lock.adoc[`lock`] 
| Acquire the lock on this object&period;
| xref:BloombergLP/bsls/BslLock/unlock.adoc[`unlock`] 
| Release the lock on this object&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
