[riot-notifications] [RIOT-OS/RIOT] core: Added thread_signal & thread_await_signal (#11006)
notifications at github.com
Wed Feb 13 14:24:11 CET 2019
This should work. Very elegant, btw :-) Maybe it is better to create a new PR for that implementation and leave this PR as it is for reference?
Note that by wrapping the mutex into an API now that fact that a mutex can be unlocked from a different context is an implementation detail and no longer part of the API. I suggest instead of `s/mutex/lock/` to also add a wrapper API (e.g. using `static inline` functions) for the mutex API that explicitly allows matching lock and unlock calls to be done from different threads. If there would ever pop up a technical reason to change the mutex implementation to no longer allow unlocks to happen from different thread contexts, the wrapper API would allow to make this happen without breaking code.
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...
More information about the notifications