.. oe:namespace:: OEPlatform



.. meta::
   :keywords: OELockSpinlock, LockSpinlock


.. _OEPlatform_OELockSpinlock:

.. oe:class:: OELockSpinlock

   .. oe:api::

      class OELockSpinlock

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

   .. code-block:: c++

      OELockSpinlock = std::lock_guard<OESpinlock>;

   .. seealso::

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