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
Cleaning up for release
[tpg/acess2.git]
/
Kernel
/
semaphore.c
diff --git
a/Kernel/semaphore.c
b/Kernel/semaphore.c
index
b73ce02
..
d4583e7
100644
(file)
--- a/
Kernel/semaphore.c
+++ b/
Kernel/semaphore.c
@@
-38,7
+38,8
@@
int Semaphore_Wait(tSemaphore *Sem, int MaxToTake)
SHORTLOCK( &Sem->Protector );
// Check if there's already items avaliable
SHORTLOCK( &Sem->Protector );
// Check if there's already items avaliable
- if( Sem->Value > 0 ) {
+ if( Sem->Value > 0 )
+ {
// Take what we need
if( MaxToTake && Sem->Value > MaxToTake )
taken = MaxToTake;
// Take what we need
if( MaxToTake && Sem->Value > MaxToTake )
taken = MaxToTake;
UCC
git Repository :: git.ucc.asn.au