Skip to content

Commit 5f4d203

Browse files
committed
Add AM_UNLIKELY() to me->startup_complete check in am_ao_run_all()
1 parent 397fafd commit 5f4d203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/ao/cooperative/port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ bool am_ao_run_all(void) {
6060
me->hsm_init_pend = false;
6161
}
6262

63-
if (!me->startup_complete) {
63+
if (AM_UNLIKELY(!me->startup_complete)) {
6464
am_pal_mutex_unlock(me->startup_mutex);
6565
me->startup_complete = true;
6666
}

0 commit comments

Comments
 (0)