Back to index

glibc  2.9
Defines | Functions | Variables
tst-mutexpi6.c File Reference
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include "tst-mutex6.c"

Go to the source code of this file.


#define PREPARE(argc, argv)   prepare ()
#define ATTR   &a


static void prepare (void)


static pthread_mutexattr_t a

Define Documentation

#define ATTR   &a

Definition at line 26 of file tst-mutexpi6.c.

#define PREPARE (   argc,
)    prepare ()

Definition at line 23 of file tst-mutexpi6.c.

Function Documentation

static void prepare ( void  ) [static]

Definition at line 9 of file tst-mutexpi6.c.

  if (pthread_mutexattr_init (&a) != 0)
      puts ("mutexattr_init failed");
      exit (1);

  if (pthread_mutexattr_setprotocol (&a, PTHREAD_PRIO_INHERIT) != 0)
      puts ("mutexattr_setprotocol failed");
      exit (1);

Here is the call graph for this function:

Variable Documentation

Definition at line 6 of file tst-mutexpi6.c.