diff --git a/tests/compute_prebuild_queue_check.py b/tests/compute_prebuild_queue_check.py index 688fb704..d644aa9e 100644 --- a/tests/compute_prebuild_queue_check.py +++ b/tests/compute_prebuild_queue_check.py @@ -20,8 +20,10 @@ static struct { volatile int64_t next; volatile int32_t stop; size_t n, n_keep; - int idle, tail_one; + int idle, tail_one, bg_threads; } LB; +static int bf_wait_now, bg_threads = 8; // bf_waiting(): the start waits for the whole warm +static int lb_idle(void) { return LB.idle && !bf_wait_now; } static volatile LONG seen[2000]; static HANDLE start_event; ''' @@ -34,13 +36,14 @@ static DWORD WINAPI worker(void *arg) { size_t i=lb_next(id); if (i>=LB.n) break; assert(InterlockedIncrement(&seen[i])==1); - if (LB.idle && LB.tail_one && i>=LB.n_keep) assert(id==0); + if (LB.idle && !bf_wait_now && LB.tail_one && i>=LB.n_keep) assert(id==0); + if (LB.idle && !bf_wait_now) assert(id