git.ucc.asn.au
/
tpg
/
acess2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a221c45
)
Fixed Threads_Yield clearning the Quantum, not the remaining timesteps
author
John Hodge
<
[email protected]
>
Sun, 27 Sep 2009 02:09:18 +0000
(10:09 +0800)
committer
John Hodge
<
[email protected]
>
Sun, 27 Sep 2009 02:09:18 +0000
(10:09 +0800)
Kernel/threads.c
patch
|
blob
|
history
diff --git
a/Kernel/threads.c
b/Kernel/threads.c
index
9b8b30f
..
7fb31f4
100644
(file)
--- a/
Kernel/threads.c
+++ b/
Kernel/threads.c
@@
-335,7
+335,7
@@
void Threads_Kill(tThread *Thread, int Status)
*/
void Threads_Yield()
{
- Proc_GetCurThread()->
Quantum
= 0;
+ Proc_GetCurThread()->
Remaining
= 0;
HALT();
}
UCC
git Repository :: git.ucc.asn.au