#include "ugen.h"
#include "gwi.h"
#include "emit.h"
-#include "shreduler_private.h"
static DTOR(basic_dtor) {
- free(UGEN(o)->module.gen.data);
+ xfree(UGEN(o)->module.gen.data);
}
static TICK(gain_tick) {
uu->prep(uu, u->in);
uu->shred->pc = 0;
shredule(uu->shred->tick->shreduler, uu->shred, 0);
- const m_bool ret = uu->shred->info->vm->shreduler->bbq->is_running;
- uu->shred->info->vm->shreduler->bbq->is_running = 1;
vm_run(uu->shred->info->vm);
- uu->shred->info->vm->shreduler->bbq->is_running = ret;
uu->shred->reg -= SZ_FLOAT;
u->out = *(m_float*)(uu->shred->reg);
}
static INSTR(UURet) {
shreduler_remove(shred->tick->shreduler, shred, 0);
- shred->tick->shreduler->bbq->is_running = 0;
}
ANN static void code_prepare(const VM_Code code) {