MCPcopy Create free account
hub / github.com/GJDuck/e9patch / mutex_get_ptr

Function mutex_get_ptr

examples/stdlib.c:1540–1544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1538}
1539
1540static pid_t *mutex_get_ptr(const mutex_t *m)
1541{
1542 uintptr_t ptr = (uintptr_t)m->val + sizeof(int);
1543 return (pid_t *)(ptr & ~0x3ull);
1544}
1545
1546/*
1547 * NOTE: mutex_lock() is marked with the __warn_unused_result__ attribute.

Callers 3

mutex_lockFunction · 0.85
mutex_trylockFunction · 0.85
mutex_unlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected