[rtems-docs commit] c-user: Update semaphore example

Sebastian Huber sebh at rtems.org
Wed Mar 17 13:01:41 UTC 2021


Module:    rtems-docs
Branch:    master
Commit:    f2bbea69afb880c9b6a58fe847f96baa5c3a5b36
Changeset: http://git.rtems.org/rtems-docs/commit/?id=f2bbea69afb880c9b6a58fe847f96baa5c3a5b36

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Mar 16 15:42:31 2021 +0100

c-user: Update semaphore example

Update #4346.

---

 c-user/semaphore/directives.rst | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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
       );



More information about the vc mailing list