1PTHREAD_MUTEX_GETPRIOCEILINGP(O3SPI)X Programmer's MPaTnHuRaElAD_MUTEX_GETPRIOCEILING(3P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       pthread_mutex_getprioceiling, pthread_mutex_setprioceiling  -  get  and
13       set the priority ceiling of a mutex (REALTIME THREADS)
14

SYNOPSIS

16       #include <pthread.h>
17
18       int pthread_mutex_getprioceiling(const pthread_mutex_t *restrict mutex,
19              int *restrict prioceiling);
20       int pthread_mutex_setprioceiling(pthread_mutex_t *restrict mutex,
21              int prioceiling, int *restrict old_ceiling);
22
23

DESCRIPTION

25       The  pthread_mutex_getprioceiling()  function  shall return the current
26       priority ceiling of the mutex.
27
28       The pthread_mutex_setprioceiling() function shall either lock the mutex
29       if  it  is unlocked, or block until it can successfully lock the mutex,
30       then it shall change the  mutex's  priority  ceiling  and  release  the
31       mutex.  When the change is successful, the previous value of the prior‐
32       ity ceiling shall be returned in old_ceiling. The  process  of  locking
33       the mutex need not adhere to the priority protect protocol.
34
35       If  the pthread_mutex_setprioceiling() function fails, the mutex prior‐
36       ity ceiling shall not be changed.
37

RETURN VALUE

39       If     successful,     the      pthread_mutex_getprioceiling()      and
40       pthread_mutex_setprioceiling()  functions shall return zero; otherwise,
41       an error number shall be returned to indicate the error.
42

ERRORS

44       The pthread_mutex_getprioceiling()  and  pthread_mutex_setprioceiling()
45       functions may fail if:
46
47       EINVAL The priority requested by prioceiling is out of range.
48
49       EINVAL The  value  specified  by  mutex  does  not refer to a currently
50              existing mutex.
51
52       EPERM  The caller does not have the privilege to perform the operation.
53
54
55       These functions shall not return an error code of [EINTR].
56
57       The following sections are informative.
58

EXAMPLES

60       None.
61

APPLICATION USAGE

63       None.
64

RATIONALE

66       None.
67

FUTURE DIRECTIONS

69       None.
70

SEE ALSO

72       pthread_mutex_destroy(),   pthread_mutex_lock(),   pthread_mutex_timed‐
73       lock(),   the   Base   Definitions   volume   of  IEEE Std 1003.1-2001,
74       <pthread.h>
75
77       Portions of this text are reprinted and reproduced in  electronic  form
78       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
79       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
80       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
81       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
82       event of any discrepancy between this version and the original IEEE and
83       The Open Group Standard, the original IEEE and The Open Group  Standard
84       is  the  referee document. The original Standard can be obtained online
85       at http://www.opengroup.org/unix/online.html .
86
87
88
89IEEE/The Open Group                  2003     PTHREAD_MUTEX_GETPRIOCEILING(3P)
Impressum