[riot-notifications] [RIOT-OS/RIOT] sys/event: add event_wait_until() (#11487)

Hauke Petersen notifications at github.com
Sat May 4 08:55:52 CEST 2019

### Contribution description
This PR adds `event_wait_until()` to the `event` API, allowing to specify a maximum wait time when waiting for an event to be posted. This function is useful when working with multiple IPC functions in parallel, e.g. combining `msg` and `event` in the same thread.

Specifically, I need this function for porting NimBLE BT Mesh...

### Testing procedure
Test application is included in this PR.

### Issues/PRs references
You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * sys/event: add event_wait_until()
  * tests: add test for evens_wait_until

-- File Changes --

    M sys/event/event.c (28)
    M sys/include/event.h (15)
    A tests/events_until/Makefile (12)
    A tests/events_until/main.c (104)
    A tests/events_until/tests/01-run.py (19)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190503/f535806e/attachment.html>

More information about the notifications mailing list