6 void *LockerReturnAddr;
9 static inline int Mutex_Acquire(tMutex *m) {
10 if(m->LockerReturnAddr)
11 Log_KernelPanic("---", "Double mutex lock of %p by %p (was locked by %p)",
12 m, __builtin_return_address(0), m->LockerReturnAddr);
13 m->LockerReturnAddr = __builtin_return_address(0);;
16 static inline void Mutex_Release(tMutex *m) { m->LockerReturnAddr = 0; }