| 299 | } |
| 300 | |
| 301 | void 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 | |
| 314 | U32 KThread::futex(U32 addr, U32 op, U32 value, U32 pTime, U32 val2, U32 val3, bool time64) { |
| 315 | U64 ramAddress = 0; |
no test coverage detected