From 5f27f2dd7f7c4af93435ff2e426cc5882cd8dbe7 Mon Sep 17 00:00:00 2001 From: Colin Davidson Date: Wed, 28 Dec 2022 21:44:17 -0800 Subject: move to work-stealing threadpool --- src/common.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/common.cpp') diff --git a/src/common.cpp b/src/common.cpp index 3624446f1..3b6ea59e8 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -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 did_you_mean_results(DidYouMeanAnswers *d) #if defined(GB_SYSTEM_WINDOWS) #pragma warning(pop) -#endif \ No newline at end of file +#endif -- cgit v1.2.3