Skip to content
Commit f0835674 authored by Andrew Boie's avatar Andrew Boie Committed by Anas Nashif
Browse files

lib: os: add sys_mutex data type



For systems without userspace enabled, these work the same
as a k_mutex.

For systems with userspace, the sys_mutex may exist in user
memory. It is still tracked as a kernel object, but has an
underlying k_mutex that is looked up in the kernel object
table.

Future enhancements will optimize sys_mutex to not require
syscalls for uncontended sys_mutexes, using atomic ops
instead.

Signed-off-by: default avatarAndrew Boie <andrew.p.boie@intel.com>
parent 1dc6612d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment