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

Function clearPollData

source/kernel/kpoll.cpp:24–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22#include "kscheduler.h"
23
24static void clearPollData(KThread* thread, KPollData* data, U32 count) {
25 BOXEDWINE_CRITICAL_SECTION_WITH_MUTEX(thread->process->fdsMutex);
26 for (U32 i = 0; i < count; i++, data++) {
27 KFileDescriptor* pFD = thread->process->getFileDescriptor_nolock(data->fd);
28 if (pFD) {
29 pFD->kobject->waitForEvents(thread->pollCond, 0);
30 }
31 }
32}
33
34S32 internal_poll(KThread* thread, KPollData* data, U32 count, U32 timeout) {
35 KPollData* firstData=data;

Callers 1

internal_pollFunction · 0.85

Calls 2

waitForEventsMethod · 0.45

Tested by

no test coverage detected