blob: 928347ed5e1062b73438c712b3fd7ea20e55ea12 (
plain) (
tree)
|
|
/**
* @file
*
* @brief Mutex Initialization Scheduling Attributes
* @ingroup POSIXAPI
*/
/*
* COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.org/license/LICENSE.
*/
#if HAVE_CONFIG_H
#include "config.h"
#endif
#include <errno.h>
#include <pthread.h>
#include <stddef.h>
/*
* 13.6.1 Mutex Initialization Scheduling Attributes, P1003.1c/Draft 10, p. 128
*/
int pthread_mutexattr_getprioceiling(
const pthread_mutexattr_t *attr,
int *prioceiling
)
{
if ( attr == NULL || !attr->is_initialized || prioceiling == NULL)
return EINVAL;
*prioceiling = attr->prio_ceiling;
return 0;
}
|