diff options
author | Christian Cunningham <cc@localhost> | 2022-03-16 15:53:48 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-03-16 15:53:48 -0700 |
commit | 4d9e61b01339866bb00cefb59e13826a05a6be0e (patch) | |
tree | f529aafd57f19a6a7d40fbdd7f8613f8b2696cfa /src/cpu | |
parent | 18b205cc3498e81136107b383618f92df5ef1380 (diff) |
Add method to not allow duplicates
Diffstat (limited to 'src/cpu')
-rw-r--r-- | src/cpu/irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/irq.c b/src/cpu/irq.c index 80ca7dd..694742a 100644 --- a/src/cpu/irq.c +++ b/src/cpu/irq.c @@ -61,7 +61,7 @@ void c_irq_handler(void) static char timer_lock = 0; if (!timer_lock) { timer_lock = 1; - add_thread(test_entry, 0, 2); + add_thread_without_duplicate(test_entry, 0, 2); timer_lock = 0; } *nexttime = *timer_chi + 8000000; |