RTEMS Logo

RTEMS 4.7.2 On-Line Library


Mutex Manager PTHREAD_MUTEX_INITIALIZER

PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

10.2.2: PTHREAD_MUTEX_INITIALIZER

This is a special value that a variable of type pthread_mutex_t may be statically initialized to as shown below:

pthread_mutex_t my_mutex = PTHREAD_MUTEX_INITIALIZER;

This indicates that my_mutex will be automatically initialized by an implicit call to pthread_mutex_init the first time the mutex is used.

Note that the mutex will be initialized with default attributes.


PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

Copyright © 1988-2004 OAR Corporation