You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@mynewt.apache.org by "Marko Kiiskila (JIRA)" <ji...@apache.org> on 2016/04/28 20:19:13 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 ]
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)