MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / isPriorityReadReady

Method isPriorityReadReady

source/kernel/knativesocket.cpp:793–806  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

791}
792
793bool KNativeSocketObject::isPriorityReadReady() {
794 fd_set sready = {};
795 struct timeval nowait = { 0 };
796
797 FD_ZERO(&sready);
798 FD_SET(this->nativeSocket, &sready);
799
800 ::select(this->nativeSocket + 1, nullptr, nullptr, &sready, &nowait);
801 bool result = FD_ISSET(this->nativeSocket, &sready) != 0;
802 if (result) {
803 this->error = 0;
804 }
805 return result;
806}
807
808bool KNativeSocketObject::isReadReady() {
809 fd_set sready = {};

Callers 1

internal_pollFunction · 0.45

Calls 1

selectFunction · 0.50

Tested by

no test coverage detected