aboutsummaryrefslogtreecommitdiff
path: root/muswd.c
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2023-10-11 09:45:18 +0000
committerrodri <rgl@antares-labs.eu>2023-10-11 09:45:18 +0000
commit87952fb18827d804a53fe8c12562a0444e4f59dd (patch)
tree3f4d7453fac90af983b48e90d3a4f516e7daaac7 /muswd.c
parent650a361f5a04e4fc39ade90459d280d227875cb1 (diff)
downloadmusw-front.tar.gz
musw-front.tar.bz2
musw-front.zip
got rid of yield(2) abuse.HEADfront
Diffstat (limited to 'muswd.c')
-rw-r--r--muswd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/muswd.c b/muswd.c
index a61595c..282fea7 100644
--- a/muswd.c
+++ b/muswd.c
@@ -330,7 +330,7 @@ broadcaststate(void)
}
void
-threadsim(void *)
+runsim(void)
{
int i;
ulong kdown;
@@ -536,6 +536,5 @@ threadmain(int argc, char *argv[])
threadcreate(threadnetrecv, &adfd, mainstacksize);
threadcreate(threadnetppu, nil, mainstacksize);
threadcreate(threadnetsend, &adfd, mainstacksize);
- threadcreate(threadsim, nil, mainstacksize);
- yield();
+ runsim();
}