source: rtems/cpukit/posix/src/mutexattrdestroy.c @ 8f6b7b51

4.104.115
Last change on this file since 8f6b7b51 was b1dbfd7, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/03/09 at 10:10:57

Eliminate TRUE/FALSE.

  • Property mode set to 100644
File size: 795 bytes
Line 
1/*
2 *  COPYRIGHT (c) 1989-2007.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.com/license/LICENSE.
8 *
9 *  $Id$
10 */
11
12#if HAVE_CONFIG_H
13#include "config.h"
14#endif
15
16#include <errno.h>
17#include <pthread.h>
18
19#include <rtems/system.h>
20#include <rtems/score/coremutex.h>
21#include <rtems/score/watchdog.h>
22#include <rtems/posix/mutex.h>
23#include <rtems/posix/priority.h>
24#include <rtems/posix/time.h>
25
26/*PAGE
27 *
28 *  11.3.1 Mutex Initialization Attributes, P1003.1c/Draft 10, p. 81
29 */
30
31int pthread_mutexattr_destroy(
32  pthread_mutexattr_t *attr
33)
34{
35  if ( !attr || !attr->is_initialized )
36    return EINVAL;
37
38  attr->is_initialized = false;
39  return 0;
40}
Note: See TracBrowser for help on using the repository browser.