.. oe:namespace:: OEPlatform



.. meta::
   :keywords: OELockCondition, LockCondition


.. _OEPlatform_OELockCondition:

.. oe:class:: OELockCondition

   .. oe:api::


      class OELockCondition

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

   .. warning::

      This may not prevent deadlocks as
      :oe:meth:`OEPlatform::OECondition::Signal` or
      :oe:meth:`OEPlatform::OECondition::Broadcast` still need to be
      explicitly called by the user.

   .. oe:method:: Constructors

      .. oe:api::

         OELockCondition(OECondition& cond)

      This constructor calls :oe:meth:`OEPlatform::OECondition::Acquire`. The
      destructor of this class will be responsible for calling
      :oe:meth:`OEPlatform::OECondition::Release`.

   .. oe:method:: operator=
      :language: c++

      .. oe:api::

         OELockCondition & operator=(const OELockCondition &)

      Assignment operator.

   

