summaryrefslogtreecommitdiffstats
path: root/xbmc/peripherals/EventLockHandle.cpp
blob: b6d2a6d8a55d60c9a9473721419eab76b520e8cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 *  Copyright (C) 2018 Team Kodi
 *  This file is part of Kodi - https://kodi.tv
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 *  See LICENSES/README.md for more information.
 */

#include "EventLockHandle.h"

using namespace PERIPHERALS;

CEventLockHandle::CEventLockHandle(IEventLockCallback& callback) : m_callback(callback)
{
}

CEventLockHandle::~CEventLockHandle(void)
{
  m_callback.ReleaseLock(*this);
}