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 - Cleaning up unneeded malloc() calls
[tpg/acess2.git]
/
Kernel
/
threads.c
diff --git
a/Kernel/threads.c
b/Kernel/threads.c
index
3ebc4dc
..
c4169fe
100644
(file)
--- a/
Kernel/threads.c
+++ b/
Kernel/threads.c
@@
-20,7
+20,7
@@
#define SCHED_RR_SIM 2 // Single Queue Round Robin
#define SCHED_RR_PRI 3 // Multi Queue Round Robin
// Set scheduler type
#define SCHED_RR_SIM 2 // Single Queue Round Robin
#define SCHED_RR_PRI 3 // Multi Queue Round Robin
// Set scheduler type
-#define SCHEDULER_TYPE SCHED_
LOTTERY
+#define SCHEDULER_TYPE SCHED_
RR_PRI
// === CONSTANTS ===
#define DEFAULT_QUANTUM 10
// === CONSTANTS ===
#define DEFAULT_QUANTUM 10
@@
-1474,7
+1474,6
@@
int Semaphore_Wait(tSemaphore *Sem, int MaxToTake)
else
taken = Sem->Value;
Sem->Value -= taken;
else
taken = Sem->Value;
Sem->Value -= taken;
- SHORTREL( &Sem->Protector );
}
else
{
}
else
{
UCC
git Repository :: git.ucc.asn.au