MCPcopy Create free account
hub / github.com/defold/defold / PollerHasEvent

Function PollerHasEvent

engine/dlib/src/dlib/file_descriptor.cpp:66–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64 }
65
66 bool PollerHasEvent(Poller* poller, PollEvent event, int fd)
67 {
68 for (uint32_t i = 0; i < poller->m_Pollfds.Size(); ++i)
69 {
70 if (poller->m_Pollfds[i].fd == fd)
71 {
72 int e = PollReturnEventToNative(event);
73 return poller->m_Pollfds[i].revents & e;
74 }
75 }
76 return false;
77 }
78
79 void PollerReset(Poller* poller)
80 {

Callers 1

SelectorIsSetFunction · 0.85

Calls 2

PollReturnEventToNativeFunction · 0.70
SizeMethod · 0.45

Tested by

no test coverage detected