cleanup of #ifdef _XBOX
[vuplus_xbmc] / xbmc / threads / Event.h
1 // Event.h: interface for the CEvent class.
2 //
3 //////////////////////////////////////////////////////////////////////
4
5 #if !defined(AFX_EVENT_H__724ADE14_0F5C_4836_B995_08FFAA97D6B9__INCLUDED_)
6 #define AFX_EVENT_H__724ADE14_0F5C_4836_B995_08FFAA97D6B9__INCLUDED_
7
8 #if _MSC_VER > 1000
9 #pragma once
10 #endif // _MSC_VER > 1000
11
12
13 /*
14 * XBMC Media Center
15 * Copyright (c) 2002 Frodo
16 * Portions Copyright (c) by the authors of ffmpeg and xvid
17 *
18 * This program is free software; you can redistribute it and/or modify
19 * it under the terms of the GNU General Public License as published by
20 * the Free Software Foundation; either version 2 of the License, or
21 * (at your option) any later version.
22 *
23 * This program is distributed in the hope that it will be useful,
24 * but WITHOUT ANY WARRANTY; without even the implied warranty of
25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26 * GNU General Public License for more details.
27 *
28 * You should have received a copy of the GNU General Public License
29 * along with this program; if not, write to the Free Software
30 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
31 */
32
33 #if defined(_WIN32)
34 #include <windows.h>
35 #else
36 #include "PlatformInclude.h"
37 #endif
38
39 class CEvent
40 {
41 public:
42   bool WaitMSec(unsigned int milliSeconds);
43   HANDLE GetHandle();
44   void Reset();
45   void Set();
46   void Wait();
47   CEvent(bool manual = false);
48   CEvent(const CEvent& event);
49   CEvent& operator=(const CEvent& src);
50
51   virtual ~CEvent();
52
53 protected:
54   HANDLE m_hEvent;
55 };
56
57 #endif // !defined(AFX_EVENT_H__724ADE14_0F5C_4836_B995_08FFAA97D6B9__INCLUDED_)