projects
/
sx
/
simavr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
regExp
home
|
summary
|
tags
|
heads
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
raw
|
patch
| inline |
side by side
(parent:
ba4ada3
)
Commit
aa836a6d1ad6d85611c99590050396f923c9c275
author
Michel Pollet
<buserror@gmail.com>
Fri, 1 Jun 2012 22:14:11 +0000
(23:14 +0100)
committer
Michel Pollet
<buserror@gmail.com>
Fri, 1 Jun 2012 22:14:11 +0000
(23:14 +0100)
Makes it better on threaded GL on OSX
Signed-off-by: Michel Pollet <buserror@gmail.com>
simavr/sim/sim_cycle_timers.c
patch
|
blob
|
history
|
download
diff --git
a/simavr/sim/sim_cycle_timers.c
b/simavr/sim/sim_cycle_timers.c
index 5b362e9794116da827f6ddcdbb210f1d4dab46b0..71ab161d58f02780a23d52307de0c5900e218586 100644
(file)
--- a/
simavr/sim/sim_cycle_timers.c
+++ b/
simavr/sim/sim_cycle_timers.c
@@
-68,11
+68,11
@@
avr_cycle_timer_insert(
if (cnt)
memmove(&pool->timer[inserti + 1], &pool->timer[inserti],
cnt * sizeof(avr_cycle_timer_slot_t));
- pool->count++;
pool->timer[inserti].timer = timer;
pool->timer[inserti].param = param;
pool->timer[inserti].when = when;
+ pool->count++;
DEBUG(printf("%s %2d/%2d when %7d %p/%p\n", __func__, inserti, pool->count, (int)(when - avr->cycle), timer, param);)
DUMP(pool, "after");
}