From: fennecdjay Date: Sat, 16 Jul 2022 15:41:47 +0000 (+0200) Subject: :bug: Test shreduler X-Git-Tag: nightly~264^2~93 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=2d5cf837453bca81fbbdf1e837e649865fda1e02;p=gwion.git :bug: Test shreduler --- diff --git a/src/vm/shreduler.c b/src/vm/shreduler.c index 7e558b78..4525b155 100644 --- a/src/vm/shreduler.c +++ b/src/vm/shreduler.c @@ -78,9 +78,10 @@ ANN void shreduler_remove(const Shreduler s, const VM_Shred out, ANN void shredule(const Shreduler s, const VM_Shred shred, const m_float wake_time) { + struct ShredTick_ *tk = shred->tick; + if(tk->prev == (struct ShredTick_*)-1) return; MUTEX_LOCK(s->mutex); const m_float time = wake_time + (m_float)s->bbq->pos; - struct ShredTick_ *tk = shred->tick; tk->wake_time = time; if (s->list) { struct ShredTick_ *curr = s->list, *prev = NULL;