From 1348d8a8cdefcb02be6ad9346ecbf24a4635fe0c Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 2 Sep 2019 18:49:23 +0100 Subject: Improve thread pool (volatile hints, etc) --- src/parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parser.cpp') diff --git a/src/parser.cpp b/src/parser.cpp index e4d21e72a..a026e8ecd 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -4822,7 +4822,7 @@ ParseFileError parse_packages(Parser *p, String init_filename) { thread_pool_kick_and_wait(&parser_thread_pool); // NOTE(bill): Get the last error and use that - for (isize i = parser_thread_pool.threads.count-1; i >= 0; i--) { + for (isize i = parser_thread_pool.thread_count-1; i >= 0; i--) { gbThread *t = &parser_thread_pool.threads[i]; ParseFileError err = cast(ParseFileError)t->return_value; if (err != ParseFile_None) { -- cgit v1.2.3