| 22 | #include "kscheduler.h" |
| 23 | |
| 24 | static 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 | |
| 34 | S32 internal_poll(KThread* thread, KPollData* data, U32 count, U32 timeout) { |
| 35 | KPollData* firstData=data; |
no test coverage detected