mirror of https://github.com/mkerrisk/man-pages
pthread_mutexattr_setrobust.3: wfix: remove redundant comments
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
ae12e0e0f9
commit
0421538981
|
@ -238,11 +238,10 @@ main(int argc, char *argv[])
|
|||
int s;
|
||||
|
||||
pthread_mutexattr_init(&attr);
|
||||
/* initialize the attributes object */
|
||||
pthread_mutexattr_setrobust(&attr, PTHREAD_MUTEX_ROBUST);
|
||||
/* set robustness */
|
||||
|
||||
pthread_mutex_init(&mtx, &attr); /* initialize the mutex */
|
||||
pthread_mutexattr_setrobust(&attr, PTHREAD_MUTEX_ROBUST);
|
||||
|
||||
pthread_mutex_init(&mtx, &attr);
|
||||
|
||||
pthread_create(&thr, NULL, original_owner_thread, NULL);
|
||||
|
||||
|
|
Loading…
Reference in New Issue