summaryrefslogtreecommitdiffstats
path: root/xbmc/windowing/tvos/WinEventsTVOS.h
blob: fa30665da6b2c995e149b588efd9e74458eb80ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 *  Copyright (C) 2012-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.
 */

#pragma once

#include "threads/CriticalSection.h"
#include "threads/Event.h"
#include "threads/Thread.h"
#include "windowing/WinEvents.h"

#include <list>
#include <queue>
#include <string>
#include <vector>

class CWinEventsTVOS : public IWinEvents, public CThread
{
public:
  CWinEventsTVOS();
  ~CWinEventsTVOS();

  void MessagePush(XBMC_Event* newEvent);
  size_t GetQueueSize();

  bool MessagePump();

private:
  CCriticalSection m_eventsCond;
  std::list<XBMC_Event> m_events;
};