TDME2  1.9.200
KernelEventMechanismPSD.h
Go to the documentation of this file.
1 #pragma once
2 
3 #if defined(__HAIKU__)
4  #define _DEFAULT_SOURCE
5  #include <bsd/sys/event.h>
6 #else
7  #include <sys/event.h>
8 #endif
9 
10 #include <array>
11 #include <vector>
12 
13 #include <tdme/tdme.h>
16 
18 
20 
21 using std::array;
22 using std::vector;
23 
24 /**
25  * BSD kernel event mechanism platform specific data
26  * @author Andreas Drewke
27  */
30 
31 private:
32  // forbid class copy
34 
35  /**
36  * @brief Public constructor
37  */
39  kq(0),
40  kqChangeListMax(0),
43  kqMutex("kem_kq_mutex"),
44  kqEventListMax(0) {
45  //
46  }
47 
48  int kq;
49 
50  unsigned int kqChangeListMax;
51  unsigned int kqChangeListBuffer;
52  unsigned int kqChangeListCurrent;
53  array<vector<struct kevent>, 2> kqChangeList;
55 
56  unsigned int kqEventListMax;
57  vector<struct kevent> kqEventList;
58 };
Interface to kernel event mechanismns.
BSD kernel event mechanism platform specific data.
Mutex implementation.
Definition: Mutex.h:19
#define FORBID_CLASS_COPY(CLASS)
Definition: tdme.h:6