Improve thread pool (volatile hints, etc)

This commit is contained in:
gingerBill
2019-09-02 18:49:23 +01:00
parent 495aaacb81
commit 1348d8a8cd
3 changed files with 45 additions and 22 deletions

View File

@@ -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) {