MCPcopy Create free account
hub / github.com/SFML/SFML / waitForFlip

Function waitForFlip

src/SFML/Window/DRM/DRMContext.cpp:77–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77bool waitForFlip(int timeout)
78{
79 while (waitingForFlip)
80 {
81 pollFD.revents = 0;
82
83 if (poll(&pollFD, 1, timeout) < 0)
84 return false;
85
86 if (pollFD.revents & (POLLHUP | POLLERR))
87 return false;
88
89 if (pollFD.revents & POLLIN)
90 {
91 drmHandleEvent(drmNode.fileDescriptor, &drmEventCtx);
92 }
93 else
94 {
95 return false;
96 }
97 }
98 return true;
99}
100
101void cleanup()
102{

Callers 1

displayMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected