mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-05 20:32:03 -04:00
Improve thread pool (volatile hints, etc)
This commit is contained in:
1 parent
495aaacb81
commit
1348d8a8cd
3 files changed
+45
-22
No files matched your search
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user