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

Method clearFutexes

source/kernel/kthread.cpp:301–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301void KThread::clearFutexes() {
302 U32 i;
303
304 for (i=0;i<MAX_FUTEXES;i++) {
305 if (system_futex[i].thread == this) {
306 BOXEDWINE_CRITICAL_SECTION_WITH_CONDITION(system_futex[i].cond);
307 if (system_futex[i].thread == this) {
308 freeFutex(&system_futex[i]);
309 }
310 }
311 }
312}
313
314U32 KThread::futex(U32 addr, U32 op, U32 value, U32 pTime, U32 val2, U32 val3, bool time64) {
315 U64 ramAddress = 0;

Callers 2

internalCleanupMethod · 0.95
resetMethod · 0.95

Calls 1

freeFutexFunction · 0.85

Tested by

no test coverage detected