United States-English |
|
|
HP-UX Reference > Ppthread_mutex_getprioceiling(3T)Pthread LibraryHP-UX 11i Version 3: February 2007 |
|
NAMEpthread_mutex_getprioceiling(), pthread_mutex_setprioceiling() — get or set the prioceiling of a mutex. SYNOPSIS#include <pthread.h> int pthread_mutex_getprioceiling( pthread_mutex_t *__restrict mutex, int *__restrict prioceiling ); int pthread_mutex_setprioceiling( pthread_mutex_t *__restrict mutex, int prioceiling, int *__restrict old_ceiling ); PARAMETERS
DESCRIPTIONThe pthread_mutex_setprioceiling() function will first lock mutex. If the mutex is currently locked, the calling thread will block until the mutex can be locked. Once the mutex has been locked, the prioceiling attribute of mutex will be changed to the value specified in the prioceiling parameter and mutex will be unlocked. The old priority ceiling for the mutex will be returned in old_prioceiling. The pthread_mutex_getprioceiling() function returns the current value of the prioceiling attribute for mutex in the prioceiling parameter. Be sure to check for the definition of _POSIX_THREAD_PRIO_PROTECT before using these functions. Not all systems will support these functions. RETURN VALUEUpon successful completion, pthread_mutex_getprioceiling() and pthread_mutex_setprioceiling() return zero. Otherwise, an error number is returned to indicate the error (the errno variable is not set). ERRORSIf any of the following occur, the pthread_mutex_getprioceiling() and pthread_mutex_setprioceiling() functions return the corresponding error number:
For each of the following conditions, if the condition is detected, the pthread_mutex_getprioceiling() and pthread_mutex_setprioceiling() functions return the corresponding error number:
AUTHORpthread_mutex_getprioceiling() and pthread_mutex_setprioceiling() were derived from the IEEE POSIX P1003.1c standard. SEE ALSOpthread_create(3T), pthread_mutex_init(3T), pthread_mutexattr_setprioceiling(3T), pthread_mutexattr_getprioceiling(3T), pthread_mutex_lock(3T), pthread_mutex_trylock(3T), pthread_mutex_unlock(3T). |
Printable version | ||
|