[riot-notifications] [RIOT-OS/RIOT] sys/sema: add sema_get_value() (#15781)

Hauke Petersen notifications at github.com
Fri Jan 15 15:29:37 CET 2021

### Contribution description
I'd like to optimize the NimBLE port by moving its mapping from the rather large `posix_semaphore` to use RIOTs native semaphore implementation (`sys/sema`). Everyhting is quite straight forward, expect the missing `get_value()` function. So this PR adds this function to the `sys/sema` module.

### Testing procedure
Build test should do.

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


-- Commit Summary --

  * sys/sema: add same_get_value()

-- File Changes --

    M sys/include/sema.h (12)

-- 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/20210115/10c52861/attachment.htm>

More information about the notifications mailing list