diff options
| author | gingerBill <bill@gingerbill.org> | 2019-09-01 20:02:39 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-09-01 20:02:39 +0100 |
| commit | 657103c4cff8f63cfa617d8c4371fd29df7b41a2 (patch) | |
| tree | b902045f4e9a88a0e92cac43a19939ac0741fb46 /src/common.cpp | |
| parent | b9d3129fb3a4ba7ef49cea69d086a7f705819f2e (diff) | |
ThreadPool for the parser
Diffstat (limited to 'src/common.cpp')
| -rw-r--r-- | src/common.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/common.cpp b/src/common.cpp index 8085e895c..db6505a36 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -10,13 +10,11 @@ #define GB_IMPLEMENTATION #include "gb/gb.h" - #include <wchar.h> #include <stdio.h> #include <math.h> - template <typename U, typename V> gb_inline U bit_cast(V &v) { return reinterpret_cast<U &>(v); } @@ -331,7 +329,7 @@ void mul_overflow_u64(u64 x, u64 y, u64 *lo, u64 *hi) { #include "ptr_set.cpp" #include "string_set.cpp" #include "priority_queue.cpp" - +#include "thread_pool.cpp" gb_global String global_module_path = {0}; @@ -873,7 +871,6 @@ ReadDirectoryError read_directory(String path, Array<FileInfo> *fi) { info.size = size; info.is_dir = (file_data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) != 0; array_add(fi, info); - } while (FindNextFileW(find_file, &file_data)); if (fi->count == 0) { |