Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 3 additions & 12 deletions events/include/events/EventQueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -761,10 +761,7 @@ class EventQueue : private mbed::NonCopyable<EventQueue> {

F *e = new (p) F(std::move(f));
equeue_event_dtor(e, &EventQueue::function_dtor<F>);
int id = equeue_post(&_equeue, &EventQueue::function_call<F>, e);
if (!id)
queue_full(QUEUE_FULL_CALL, sizeof(F));
return id;
return equeue_post(&_equeue, &EventQueue::function_call<F>, e);
}


Expand Down Expand Up @@ -841,10 +838,7 @@ class EventQueue : private mbed::NonCopyable<EventQueue> {
F *e = new (p) F(std::move(f));
equeue_event_delay(e, ms.count());
equeue_event_dtor(e, &EventQueue::function_dtor<F>);
int id = equeue_post(&_equeue, &EventQueue::function_call<F>, e);
if (!id)
queue_full(QUEUE_FULL_CALL_IN, sizeof(F));
return id;
return equeue_post(&_equeue, &EventQueue::function_call<F>, e);
}

/** Calls an event on the queue after a specified delay
Expand Down Expand Up @@ -999,10 +993,7 @@ class EventQueue : private mbed::NonCopyable<EventQueue> {
equeue_event_delay(e, ms.count());
equeue_event_period(e, ms.count());
equeue_event_dtor(e, &EventQueue::function_dtor<F>);
int id = equeue_post(&_equeue, &EventQueue::function_call<F>, e);
if (!id)
queue_full(QUEUE_FULL_CALL_EVERY, sizeof(F));
return id;
return equeue_post(&_equeue, &EventQueue::function_call<F>, e);
}

/** Calls an event on the queue periodically
Expand Down