blob: 163cddeda93112e742698eb9fed60f1c1650096c [file] [log] [blame]
andrew@webrtc.orgb015cbe2012-10-22 18:19:231/*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
phoglund@webrtc.org80b62052012-12-10 10:44:3711#ifndef WEBRTC_SYSTEM_WRAPPERS_SOURCE_EVENT_WIN_H_
12#define WEBRTC_SYSTEM_WRAPPERS_SOURCE_EVENT_WIN_H_
andrew@webrtc.orgb015cbe2012-10-22 18:19:2313
14#include <windows.h>
15
Henrik Kjellander78f65d02015-10-28 17:17:4016#include "webrtc/system_wrappers/include/event_wrapper.h"
andrew@webrtc.orgb015cbe2012-10-22 18:19:2317
phoglund@webrtc.org80b62052012-12-10 10:44:3718#include "webrtc/typedefs.h"
andrew@webrtc.orgb015cbe2012-10-22 18:19:2319
20namespace webrtc {
andrew@webrtc.orgb015cbe2012-10-22 18:19:2321
Peter Boströma8c4f432015-04-08 09:24:1922class EventTimerWin : public EventTimerWrapper {
phoglund@webrtc.org80b62052012-12-10 10:44:3723 public:
Peter Boströma8c4f432015-04-08 09:24:1924 EventTimerWin();
25 virtual ~EventTimerWin();
andrew@webrtc.orgb015cbe2012-10-22 18:19:2326
phoglund@webrtc.org80b62052012-12-10 10:44:3727 virtual EventTypeWrapper Wait(unsigned long max_time);
28 virtual bool Set();
andrew@webrtc.orgb015cbe2012-10-22 18:19:2329
phoglund@webrtc.org80b62052012-12-10 10:44:3730 virtual bool StartTimer(bool periodic, unsigned long time);
31 virtual bool StopTimer();
32
33 private:
34 HANDLE event_;
pbos@webrtc.orgc0231af2013-04-09 09:06:1135 uint32_t timerID_;
andrew@webrtc.orgb015cbe2012-10-22 18:19:2336};
andrew@webrtc.orgb015cbe2012-10-22 18:19:2337
phoglund@webrtc.org80b62052012-12-10 10:44:3738} // namespace webrtc
39
40#endif // WEBRTC_SYSTEM_WRAPPERS_SOURCE_EVENT_WIN_H_