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 - Added 'Flags' param to VFS Read/Write/FindDir
[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 );
-
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;
}
UCC
git Repository :: git.ucc.asn.au