From 87952fb18827d804a53fe8c12562a0444e4f59dd Mon Sep 17 00:00:00 2001 From: rodri Date: Wed, 11 Oct 2023 09:45:18 +0000 Subject: got rid of yield(2) abuse. --- musw.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'musw.c') diff --git a/musw.c b/musw.c index fd8c8ac..e4367ea 100644 --- a/musw.c +++ b/musw.c @@ -697,7 +697,7 @@ soundproc(void *) } void -threadshow(void *) +runshow(void) { uvlong then, now, frametime, lastpktsent; Vfx *vfx; @@ -834,6 +834,5 @@ threadmain(int argc, char *argv[]) threadcreate(threadnetppu, nil, mainstacksize); threadcreate(threadnetsend, &fd, mainstacksize); threadcreate(threadresize, mc, mainstacksize); - threadcreate(threadshow, nil, mainstacksize); - yield(); + runshow(); } -- cgit v1.2.3