diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-09-24 16:48:00 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-09-24 16:48:00 +0000 |
commit | 32298ff5da1d21c0411dbf8ac6e1801b80529592 (patch) | |
tree | 37c5e9cba4b0d16f2e7278a90bedc4927632804f /protocols/SkypeWeb/src/skype_utils.h | |
parent | 5cfd54b9152944f686c2ca2402e85280b3130f32 (diff) |
SkypeWeb: moji support
git-svn-id: http://svn.miranda-ng.org/main/trunk@15435 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_utils.h')
-rw-r--r-- | protocols/SkypeWeb/src/skype_utils.h | 30 |
1 files changed, 6 insertions, 24 deletions
diff --git a/protocols/SkypeWeb/src/skype_utils.h b/protocols/SkypeWeb/src/skype_utils.h index 1a608bce47..e9c1275334 100644 --- a/protocols/SkypeWeb/src/skype_utils.h +++ b/protocols/SkypeWeb/src/skype_utils.h @@ -80,30 +80,12 @@ class EventHandle {
HANDLE _hEvent;
public:
- inline EventHandle()
- {
- _hEvent = CreateEvent(NULL, 0, 0, NULL);
- }
- inline ~EventHandle()
- {
- CloseHandle(_hEvent);
- }
- inline void Set()
- {
- SetEvent(_hEvent);
- }
- inline void Wait()
- {
- WaitForSingleObject(_hEvent, INFINITE);
- }
- inline void Wait(DWORD dwMilliseconds)
- {
- WaitForSingleObject(_hEvent, dwMilliseconds);
- }
- inline operator HANDLE()
- {
- return _hEvent;
- }
+ inline EventHandle() { _hEvent = CreateEvent(NULL, 0, 0, NULL); }
+ inline ~EventHandle() { CloseHandle(_hEvent); }
+ inline void Set() { SetEvent(_hEvent); }
+ inline void Wait() { WaitForSingleObject(_hEvent, INFINITE); }
+ inline void Wait(DWORD dwMilliseconds) { WaitForSingleObject(_hEvent, dwMilliseconds); }
+ inline operator HANDLE() { return _hEvent; }
};
|