Sterling Hughes created MYNEWT-8:
------------------------------------
Summary: eventq_get() should have a timeout
Key: MYNEWT-8
URL: https://issues.apache.org/jira/browse/MYNEWT-8
Project: Mynewt
Issue Type: Improvement
Reporter: Sterling Hughes
Right now eventq_get() blocks until an event is put on the queue (and waits
forever if not.)
In order to schedule a timeout, a callout must be used, to post an event to the
queue, if now other events are present. This is inconvenient.
eventq_get() should take an argument which is a timeout in OS ticks. If
timeout ticks have expired, and no events are present, the eventq_get() should
return NULL. If OS_WAIT_FOREVER is specified, then os_eventq_get() should
maintain current behaviour.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)