From d6ef28d7133d0b14a228ae7c2c0009ffc8880f1a Mon Sep 17 00:00:00 2001
From: John Ogness <john.ogness@linutronix.de>
Date: Thu, 21 Jun 2018 15:49:56 +0206
Subject: rt-app-basics: use posix setrobust

pthread_mutexattr_setrobust() is now in the posix standard. Remove
the _np/_NP usage.

Signed-off-by: John Ogness <john.ogness@linutronix.de>
---
 realtime/rt-app-basics/pres_rt-app-basics_en.tex | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'realtime/rt-app-basics/pres_rt-app-basics_en.tex')

diff --git a/realtime/rt-app-basics/pres_rt-app-basics_en.tex b/realtime/rt-app-basics/pres_rt-app-basics_en.tex
index 926ae26..f1b93da 100644
--- a/realtime/rt-app-basics/pres_rt-app-basics_en.tex
+++ b/realtime/rt-app-basics/pres_rt-app-basics_en.tex
@@ -171,9 +171,9 @@ pthread_mutex_t master_lock;
 pthread_mutexattr_t mattr;
 
 pthread_mutexattr_init(&mattr);
-pthread_mutexattr_setpshared(&mattr, PTHREAD_PROCESS_SHARED);
 pthread_mutexattr_setprotocol(&mattr, PTHREAD_PRIO_INHERIT);
-pthread_mutexattr_setrobust_np(&mattr, PTHREAD_MUTEX_ROBUST_NP);
+pthread_mutexattr_setpshared(&mattr, PTHREAD_PROCESS_SHARED);
+pthread_mutexattr_setrobust(&mattr, PTHREAD_MUTEX_ROBUST);
 pthread_mutex_init(&master_lock, &mattr);
 
 pthread_mutex_lock(&master_lock);
@@ -202,9 +202,9 @@ pthread_cond_t cond;
 pthread_mutex_t mutex;
 
 pthread_mutexattr_init (&mattr);
-pthread_mutexattr_setpshared (&mattr, PTHREAD_PROCESS_SHARED);
 pthread_mutexattr_setprotocol(&mattr, PTHREAD_PRIO_INHERIT);
-pthread_mutexattr_setrobust_np(&mattr, PTHREAD_MUTEX_ROBUST_NP);
+pthread_mutexattr_setpshared (&mattr, PTHREAD_PROCESS_SHARED);
+pthread_mutexattr_setrobust(&mattr, PTHREAD_MUTEX_ROBUST);
 pthread_mutex_init (&mutex, &mattr);
 \end{verbatim}
 \end{frame}
-- 
cgit v1.2.3

