Skip to content

Commit

Permalink
more likely short circuit
Browse files Browse the repository at this point in the history
  • Loading branch information
colinthomas-z80 committed Jul 25, 2023
1 parent fccb843 commit 6490ab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taskvine/src/manager/vine_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -4394,7 +4394,7 @@ static struct vine_task *vine_wait_internal(struct vine_manager *q, int timeout,
if(events > 0) {
if(task_state_any(q, VINE_TASK_RETRIEVED) && t == NULL) continue;
BEGIN_ACCUM_TIME(q, time_internal);
int done = !task_state_any(q, VINE_TASK_READY) && !task_state_any(q, VINE_TASK_RUNNING) && !task_state_any(q, VINE_TASK_WAITING_RETRIEVAL);
int done = !task_state_any(q, VINE_TASK_READY) && !task_state_any(q, VINE_TASK_WAITING_RETRIEVAL) && !task_state_any(q, VINE_TASK_RUNNING);
END_ACCUM_TIME(q, time_internal);

if(done) {
Expand Down

0 comments on commit 6490ab3

Please sign in to comment.