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:
34045a2
)
Fixed potential coherency bug in timer code
author
John Hodge
<
[email protected]
>
Sun, 4 Jul 2010 03:26:01 +0000
(11:26 +0800)
committer
John Hodge
<
[email protected]
>
Sun, 4 Jul 2010 03:26:01 +0000
(11:26 +0800)
Kernel/time.c
patch
|
blob
|
history
diff --git
a/Kernel/time.c
b/Kernel/time.c
index
c048d11
..
30d11dc
100644
(file)
--- a/
Kernel/time.c
+++ b/
Kernel/time.c
@@
-43,6
+43,7
@@
void Timer_CallTimers()
{
int i;
void (*callback)(void *);
+ void *arg;
for(i = 0;
i < NUM_TIMERS;
@@
-50,9
+51,9
@@
void Timer_CallTimers()
{
if(gTimers[i].Callback == NULL) continue;
if(giTimestamp < gTimers[i].FiresAfter) continue;
- callback = gTimers[i].Callback;
+ callback = gTimers[i].Callback;
arg = gTimers[i].Argument;
gTimers[i].Callback = NULL;
- callback(
gTimers[i].Argument
);
+ callback(
arg
);
}
}
UCC
git Repository :: git.ucc.asn.au