diff options
| author | gingerBill <bill@gingerbill.org> | 2019-09-02 18:49:23 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-09-02 18:49:23 +0100 |
| commit | 1348d8a8cdefcb02be6ad9346ecbf24a4635fe0c (patch) | |
| tree | 9bccf682d7dcfc6c3d3f870c70dc6a604753a739 /src/parser.cpp | |
| parent | 495aaacb81b1b1a8175c9ad8aaa4448ab4085b6a (diff) | |
Improve thread pool (volatile hints, etc)
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |