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

Function getFutex

source/kernel/kthread.cpp:263–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261struct futex system_futex[MAX_FUTEXES];
262
263struct futex* getFutex(KThread* thread, U64 address) {
264 int i=0;
265
266 for (i=0;i<MAX_FUTEXES;i++) {
267 if (system_futex[i].address == address && system_futex[i].thread==thread) {
268 return &system_futex[i];
269 }
270 }
271 return nullptr;
272}
273
274struct futex* allocFutex(KThread* thread, U64 address, U32 millies) {
275 int i=0;

Callers 1

futexMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected