From e37e7eefcb0148651331d6a750846f26ecf11126 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 11 Sep 2020 22:54:38 +0200 Subject: Removed wait syscall - whoopsidoo! --- apps/init.c | 3 --- apps/mandelbrot.c | 3 ++- apps/wm.c | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) (limited to 'apps') diff --git a/apps/init.c b/apps/init.c index ccf88dd..ba6f93e 100644 --- a/apps/init.c +++ b/apps/init.c @@ -13,8 +13,5 @@ int main(int argc, char **argv) /* int test = exec("/window", "test", NULL); */ int mandelbrot = exec("/mandelbrot", "mandelbrot", NULL); - while (1) { - yield(); - }; return wm + mandelbrot; } diff --git a/apps/mandelbrot.c b/apps/mandelbrot.c index 9f73501..d5b8ae0 100644 --- a/apps/mandelbrot.c +++ b/apps/mandelbrot.c @@ -49,6 +49,7 @@ void draw_mandelbrot(struct window *win, int resolution) } gui_redraw(); print("Rendered mandelbrot successfully\n"); + yield(); } int main() @@ -61,7 +62,7 @@ int main() draw_mandelbrot(win, 50); while (1) { - wait(); + yield(); }; return 0; diff --git a/apps/wm.c b/apps/wm.c index d4db938..0988538 100644 --- a/apps/wm.c +++ b/apps/wm.c @@ -84,7 +84,7 @@ int main(int argc, char **argv) int mouse_skip = 0; while (1) { if (!(msg = msg_receive())) { - wait(); + yield(); continue; } -- cgit v1.2.3