Event.h
author sl
Sun, 16 Mar 2014 09:11:39 +0100
changeset 0 523a7dc3469f
child 1 d9a866996670
permissions -rw-r--r--
First contribution.
sl@0
     1
//------------------------------------------------------------------------------
sl@0
     2
#ifndef EVENT_H_INCLUDED
sl@0
     3
#define EVENT_H_INCLUDED
sl@0
     4
//------------------------------------------------------------------------------
sl@0
     5
#include <windows.h>
sl@0
     6
//------------------------------------------------------------------------------
sl@0
     7
class Event
sl@0
     8
{
sl@0
     9
public:
sl@0
    10
  Event();
sl@0
    11
  virtual ~Event();
sl@0
    12
sl@0
    13
private:
sl@0
    14
  Event(const Event& other) {}
sl@0
    15
  Event& operator=(const Event& other) { return *this; }
sl@0
    16
sl@0
    17
public:
sl@0
    18
  void Signal() const;
sl@0
    19
  void Reset() const;
sl@0
    20
  void Await() const;
sl@0
    21
sl@0
    22
private:
sl@0
    23
  HANDLE m_hEvent;
sl@0
    24
};
sl@0
    25
//------------------------------------------------------------------------------
sl@0
    26
#endif
sl@0
    27
//------------------------------------------------------------------------------