From 81b6004928015ced29b0b949e35753977aa17606 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 5 Mar 2019 18:25:57 +0100 Subject: Add ast resolving using multiple threads Fix issue where not all files are parsed --- include/compiler.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/compiler.h') diff --git a/include/compiler.h b/include/compiler.h index d01c756..d7314cc 100644 --- a/include/compiler.h +++ b/include/compiler.h @@ -21,10 +21,12 @@ struct amal_compiler { int usable_thread_count; bool started; amal_mutex mutex; + int resolve_ast_index; }; CHECK_RESULT int amal_compiler_init(amal_compiler *self); CHECK_RESULT int amal_compiler_deinit(amal_compiler *self); +/* Not thread-safe */ CHECK_RESULT int amal_compiler_load_file(amal_compiler *self, BufferView filepath); /* TODO: amal_compiler_unload_file */ -- cgit v1.2.3