Skip to content
Commit 71536935 authored by Wentong Wu's avatar Wentong Wu Committed by Andrew Boie
Browse files

lib: os: add sys_sem data type



For systems with userspace, the sys_sem exist in user memory working
as counter semaphore for user mode thread. The implemention of sys_sem
is based on k_futex. And the majority of the synchronization operations
are performed in user mode to reduce the calling of system call.
And for systems without userspace enabled, sys_sem behaves like k_sem.

Fixes: #15139.

Signed-off-by: default avatarWentong Wu <wentong.wu@intel.com>
parent 51bc0a06
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment