summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorPeter Mikkelsen <petermikkelsen10@gmail.com>2022-02-08 16:03:10 +0000
committerPeter Mikkelsen <petermikkelsen10@gmail.com>2022-02-08 16:03:10 +0000
commitc6e1c83f93f63a061f0804821ed29c656da38f28 (patch)
tree8f3b8863d9db2d79722a4ec104bb2eeb807f87e0 /main.c
parent511ae2c1879676568b2f11312c38a66b2caa21c0 (diff)
Add work in progress concurrency. Might break stuff!
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.c b/main.c
index ea26c6c..0520592 100644
--- a/main.c
+++ b/main.c
@@ -1,5 +1,6 @@
#include <u.h>
#include <libc.h>
+#include <thread.h>
#include <bio.h>
#include <pool.h>
@@ -8,10 +9,11 @@
Biobuf *stdin;
void
-main(int argc, char *argv[])
+threadmain(int argc, char *argv[])
{
int off = 0;
stdin = Bfdopen(0, OREAD);
+ initthreads();
initsymtab();
initquadnames();
traceeval = 0;
@@ -101,6 +103,7 @@ evalline(Rune *line, Biobuf *bio, int toplevel)
free(tmp->toks);
free(tmp);
}
+
return nil;
}
} \ No newline at end of file