source: rtems/cpukit/posix/src/rwlockattrdestroy.c @ 3bacb250

4.104.115
Last change on this file since 3bacb250 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: 798 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 <pthread.h>
17#include <errno.h>
18
19#include <rtems/system.h>
20#include <rtems/score/object.h>
21#include <rtems/score/states.h>
22#include <rtems/score/watchdog.h>
23#include <rtems/posix/cond.h>
24#include <rtems/posix/time.h>
25#include <rtems/posix/mutex.h>
26
27/*PAGE
28 *
29 *  RWLock Initialization Attributes
30 */
31
32int pthread_rwlockattr_destroy(
33  pthread_rwlockattr_t *attr
34)
35{
36  if ( !attr || attr->is_initialized == false )
37    return EINVAL;
38
39  attr->is_initialized = false;
40  return 0;
41}
Note: See TracBrowser for help on using the repository browser.