[ 
https://issues.apache.org/jira/browse/MYNEWT-8?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marko Kiiskila updated MYNEWT-8:
--------------------------------
    Fix Version/s:     (was: v0_8_0_rel)
                   v0_9_0_beta1

> eventq_get() should have a timeout
> ----------------------------------
>
>                 Key: MYNEWT-8
>                 URL: https://issues.apache.org/jira/browse/MYNEWT-8
>             Project: Mynewt
>          Issue Type: Improvement
>          Components: OS
>            Reporter: Sterling Hughes
>            Assignee: Sterling Hughes
>             Fix For: v0_9_0_beta1
>
>
> 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)

Reply via email to