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/logdebug - More useful asserts
[tpg/acess2.git]
/
KernelLand
/
Kernel
/
rwlock.c
diff --git
a/KernelLand/Kernel/rwlock.c
b/KernelLand/Kernel/rwlock.c
index
979df4a
..
a6aeca8
100644
(file)
--- a/
KernelLand/Kernel/rwlock.c
+++ b/
KernelLand/Kernel/rwlock.c
@@
-48,7
+48,7
@@
int RWLock_AcquireRead(tRWLock *Lock)
SHORTREL( &glThreadListLock );
SHORTREL( &Lock->Protector );
SHORTREL( &glThreadListLock );
SHORTREL( &Lock->Protector );
-
while(us->Status == THREAD_STAT_RWLOCKSLEEP) Threads_Yield(
);
+
Threads_int_WaitForStatusEnd(THREAD_STAT_RWLOCKSLEEP
);
// We're only woken when we get the lock
// TODO: Handle when this isn't the case
us->WaitPointer = NULL;
// We're only woken when we get the lock
// TODO: Handle when this isn't the case
us->WaitPointer = NULL;
@@
-90,7
+90,7
@@
int RWLock_AcquireWrite(tRWLock *Lock)
SHORTREL( &glThreadListLock );
SHORTREL( &Lock->Protector );
SHORTREL( &glThreadListLock );
SHORTREL( &Lock->Protector );
-
while(us->Status == THREAD_STAT_RWLOCKSLEEP) Threads_Yield(
);
+
Threads_int_WaitForStatusEnd(THREAD_STAT_RWLOCKSLEEP
);
us->WaitPointer = NULL;
}
else
us->WaitPointer = NULL;
}
else
UCC
git Repository :: git.ucc.asn.au