OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems/] [c/] [src/] [exec/] [posix/] [src/] [condattrdestroy.c] - Blame information for rev 158

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 158 chris
/*
2
 *  $Id: condattrdestroy.c,v 1.1.1.1 2001-07-10 09:42:29 chris Exp $
3
 */
4
 
5
#include <pthread.h>
6
#include <errno.h>
7
 
8
#include <rtems/system.h>
9
#include <rtems/score/object.h>
10
#include <rtems/score/states.h>
11
#include <rtems/score/watchdog.h>
12
#include <rtems/posix/cond.h>
13
#include <rtems/posix/time.h>
14
#include <rtems/posix/mutex.h>
15
 
16
/*PAGE
17
 *
18
 *  11.4.1 Condition Variable Initialization Attributes,
19
 *            P1003.1c/Draft 10, p. 96
20
 */
21
 
22
int pthread_condattr_destroy(
23
  pthread_condattr_t *attr
24
)
25
{
26
  if ( !attr || attr->is_initialized == FALSE )
27
    return EINVAL;
28
 
29
  attr->is_initialized = FALSE;
30
  return 0;
31
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.