Skip to content

Commit bd40d6a

Browse files
committed
Fix am_ao_event_queue_is_empty()
1 parent 6472907 commit bd40d6a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

libs/ao/ao.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,7 @@
4949
struct am_ao_state am_ao_state_;
5050

5151
bool am_ao_event_queue_is_empty(struct am_ao *ao) {
52-
struct am_ao_state *me = &am_ao_state_;
53-
me->crit_enter();
54-
bool empty = am_event_queue_is_empty(&ao->event_queue);
55-
me->crit_exit();
56-
return empty;
52+
return am_event_queue_is_empty(&am_ao_state_.event_queue);
5753
}
5854

5955
bool am_ao_publish_exclude_x(

0 commit comments

Comments
 (0)