summaryrefslogtreecommitdiffstats
path: root/c-user/semaphore/directives.rst
diff options
context:
space:
mode:
Diffstat (limited to 'c-user/semaphore/directives.rst')
-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
);