| 21 | namespace deskflow { |
| 22 | |
| 23 | EiEventQueueBuffer::EiEventQueueBuffer(ei *ei, IEventQueue *events) : m_ei{ei_ref(ei)}, m_events{events} |
| 24 | { |
| 25 | // We need a pipe to signal ourselves when addEvent() is called |
| 26 | int pipefd[2]; |
| 27 | int result = pipe2(pipefd, O_NONBLOCK); |
| 28 | assert(result == 0); |
| 29 | |
| 30 | m_pipeRead = pipefd[0]; |
| 31 | m_pipeWrite = pipefd[1]; |
| 32 | } |
| 33 | |
| 34 | EiEventQueueBuffer::~EiEventQueueBuffer() |
| 35 | { |
nothing calls this directly
no outgoing calls
no test coverage detected