move to work-stealing threadpool

This commit is contained in:
Colin Davidson
2022-12-28 21:44:17 -08:00
parent 00823ca88c
commit 5f27f2dd7f
4 changed files with 298 additions and 166 deletions

View File

@@ -31,7 +31,8 @@
gb_internal gbAllocator heap_allocator(void);
#define for_array(index_, array_) for (isize index_ = 0; index_ < (array_).count; index_++)
#define for_array_off(index_, off_, array_) for (isize index_ = off_; index_ < (array_).count; index_++)
#define for_array(index_, array_) for_array_off(index_, 0, array_)
gb_internal i32 next_pow2(i32 n);
gb_internal i64 next_pow2(i64 n);
@@ -908,4 +909,4 @@ gb_internal Slice<DistanceAndTarget> did_you_mean_results(DidYouMeanAnswers *d)
#if defined(GB_SYSTEM_WINDOWS)
#pragma warning(pop)
#endif
#endif