MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / Init

Method Init

Src/Event.cpp:59–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59int CEvent::Init()
60{
61#if HAVE_EVENTFD
62 qDebug(log) << "Use eventfd";
63 fd[0] = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC | EFD_SEMAPHORE);
64#else
65 return CreateSocketPair(fd);
66#endif
67 return 0;
68}
69
70int CEvent::Clear()
71{

Callers 2

mainFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected