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

Function PollReturnEventToNative

engine/dlib/src/dlib/file_descriptor_win32.cpp:37–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 return -1; // silence warning
36 }
37 int PollReturnEventToNative(PollEvent event)
38 {
39 switch (event)
40 {
41 case EVENT_READ:
42 return POLLRDNORM;
43 case EVENT_WRITE:
44 return POLLWRNORM;
45 case EVENT_ERROR:
46 return POLLHUP | POLLERR | POLLNVAL | POLLRDBAND;
47 default:
48 assert(false);
49 return -1;
50 }
51 return -1; // silence warning
52 }
53
54 int Wait(Poller* poller, int timeout)
55 {

Callers 1

PollerHasEventFunction · 0.70

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected