.. oe:namespace:: OEPlatform

.. meta::
   :keywords: OELock, Lock


.. _OEPlatform_OELock:

.. oe:class:: OELock

   .. oe:api::

      class OELock

   This class can be used to ensure an
   :ref:`OEMutex <OEPlatform_OEMutex>` object is properly released when
   this object falls out of scope.

   .. code-block:: c++

      OELock  = std::lock_guard<OEMutex>;

   .. seealso::

      * :ref:`OEMutex <OEPlatform_OEMutex>` class
      * `std::lock_guard <https://en.cppreference.com/w/cpp/thread/lock_guard>`_
