OpenZWave Library 1.2
EventImpl.h
Go to the documentation of this file.
1//-----------------------------------------------------------------------------
2//
3// EventImpl.h
4//
5// Windows implementation of a cross-platform event
6//
7// Copyright (c) 2010 Mal Lansell <mal@lansell.org>
8// All rights reserved.
9//
10// SOFTWARE NOTICE AND LICENSE
11//
12// This file is part of OpenZWave.
13//
14// OpenZWave is free software: you can redistribute it and/or modify
15// it under the terms of the GNU Lesser General Public License as published
16// by the Free Software Foundation, either version 3 of the License,
17// or (at your option) any later version.
18//
19// OpenZWave is distributed in the hope that it will be useful,
20// but WITHOUT ANY WARRANTY; without even the implied warranty of
21// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22// GNU Lesser General Public License for more details.
23//
24// You should have received a copy of the GNU Lesser General Public License
25// along with OpenZWave. If not, see <http://www.gnu.org/licenses/>.
26//
27//-----------------------------------------------------------------------------
28#ifndef _EventImpl_H
29#define _EventImpl_H
30
31#include <Windows.h>
32#include "Defs.h"
33
34namespace OpenZWave
35{
39 {
40 private:
41 friend class Event;
42 friend class SocketImpl;
43 friend class Wait;
44
45 EventImpl();
46 ~EventImpl();
47
48 void Set();
49 void Reset();
50
51 bool Wait( int32 _timeout ); // The wait method is to be used only by the Wait::Multiple method
52 bool IsSignalled();
53
54 HANDLE m_hEvent;
55 };
56
57} // namespace OpenZWave
58
59#endif //_EventImpl_H
60
signed int int32
Definition: Defs.h:68
Windows-specific implementation of the Event class.
Definition: EventImpl.h:39
friend class SocketImpl
Definition: EventImpl.h:42
friend class Wait
Definition: EventImpl.h:43
Platform-independent definition of event objects.
Definition: Event.h:40
Platform-independent definition of Wait objects.
Definition: Wait.h:42
Definition: Bitfield.h:35