summaryrefslogtreecommitdiffstats
path: root/c-user
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-03-16 15:42:31 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-03-17 14:00:59 +0100
commitf2bbea69afb880c9b6a58fe847f96baa5c3a5b36 (patch)
tree61073e892d77bf37ee38d6d68f27c32196f3f4ed /c-user
parenteng/vc-users: Set up patch message with repo name (diff)
downloadrtems-docs-f2bbea69afb880c9b6a58fe847f96baa5c3a5b36.tar.bz2
c-user: Update semaphore example
Update #4346.
Diffstat (limited to 'c-user')
-rw-r--r--c-user/semaphore/directives.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/c-user/semaphore/directives.rst b/c-user/semaphore/directives.rst
index 28b639d..8f4f18e 100644
--- a/c-user/semaphore/directives.rst
+++ b/c-user/semaphore/directives.rst
@@ -940,7 +940,8 @@ Please have a look at the following example:
sc = rtems_semaphore_create(
rtems_build_name( 'M', 'R', 'S', 'P' ),
1,
- RTEMS_BINARY_SEMAPHORE | RTEMS_MULTIPROCESSOR_RESOURCE_SHARING,
+ RTEMS_BINARY_SEMAPHORE | RTEMS_PRIORITY |
+ RTEMS_MULTIPROCESSOR_RESOURCE_SHARING,
1,
&semaphore_id
);