MCPcopy Create free account
hub / github.com/deskflow/deskflow / EiEventQueueBuffer

Method EiEventQueueBuffer

src/lib/platform/EiEventQueueBuffer.cpp:23–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21namespace deskflow {
22
23EiEventQueueBuffer::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
34EiEventQueueBuffer::~EiEventQueueBuffer()
35{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected