You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@mynewt.apache.org by "Sterling Hughes (JIRA)" <ji...@apache.org> on 2016/02/06 01:16:39 UTC

[jira] [Updated] (MYNEWT-8) eventq_get() should have a timeout

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

Sterling Hughes updated MYNEWT-8:
---------------------------------
    Component/s: OS

> 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
>
> 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)