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

Function PollerClearEvent

engine/dlib/src/dlib/file_descriptor.cpp:30–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 }
29
30 void PollerClearEvent(Poller* poller, PollEvent event, int fd)
31 {
32 for (uint32_t i = 0; i < poller->m_Pollfds.Size(); ++i)
33 {
34 if (poller->m_Pollfds[i].fd == fd)
35 {
36 int e = PollEventToNative(event);
37 poller->m_Pollfds[i].events &= ~e;
38 return;
39 }
40 }
41 }
42
43 void PollerSetEvent(Poller* poller, PollEvent event, int fd)
44 {

Callers 1

SelectorClearFunction · 0.85

Calls 2

PollEventToNativeFunction · 0.70
SizeMethod · 0.45

Tested by

no test coverage detected