From f2bbea69afb880c9b6a58fe847f96baa5c3a5b36 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 16 Mar 2021 15:42:31 +0100 Subject: 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 ); -- cgit v1.2.3