git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Kernel/armv7 - Extra code for Tegra2 timer tests
[tpg/acess2.git]
/
KernelLand
/
Kernel
/
mutex.c
diff --git
a/KernelLand/Kernel/mutex.c
b/KernelLand/Kernel/mutex.c
index
597242b
..
d74cde8
100644
(file)
--- a/
KernelLand/Kernel/mutex.c
+++ b/
KernelLand/Kernel/mutex.c
@@
-66,7
+66,7
@@
int Mutex_Acquire(tMutex *Mutex)
SHORTREL( &glThreadListLock );
SHORTREL( &Mutex->Protector );
SHORTREL( &glThreadListLock );
SHORTREL( &Mutex->Protector );
-
while(us->Status == THREAD_STAT_MUTEXSLEEP) Threads_Yield(
);
+
Threads_int_WaitForStatusEnd(THREAD_STAT_MUTEXSLEEP
);
// We're only woken when we get the lock
us->WaitPointer = NULL;
}
// We're only woken when we get the lock
us->WaitPointer = NULL;
}
UCC
git Repository :: git.ucc.asn.au