成功完成时,pthread_mutexattr_getprotocol子例程和pthread_mutexattr_setprotocol子例程将返回零; 否则,将返回错误号以指示错误。 错误代码 pthread_mutexattr_setprotocol子例程在下列情况下失败: 在下列情况下,pthread_mutexattr_getprotocol子例程和pthread_mutexattr_setprotocol子例程可能会失败:...
pthread_mutexattr_setprotocol(3THR) は、mutex 属性オブジェクトのプロトコル属性を設定します。#include <pthread.h> int pthread_mutexattr_setprotocol(pthread_mutexattr_t *attr, int protocol);attr は、先の pthread_mutexattr_init() の呼び出しによって作成された mutex 属性オブジェクトを指...
pa_assert_se(pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT) ==0);#endifm = pa_xnew(pa_mutex,1);#ifndefHAVE_PTHREAD_PRIO_INHERITpa_assert_se(pthread_mutex_init(&m->mutex, &attr) ==0);#elseif((r = pthread_mutex_init(&m->mutex, &attr))) {/* If this failed, then...
The pthread_mutexattr_setprotocol() and pthread_mutexattr_getprotocol() functions, respectively, set and get the protocol attribute of a mutex attribute object pointed to by attr, which was previously created by the pthread_mutexattr_init() function. The protocol attribute defines the protocol ...
I'm trying to build a python app using uWSGI in an alpine based container image. However, uWSGI fails already during startup with the error message unable to set PTHREAD_PRIO_INHERIT. Full log: [uWSGI] getting INI configuration from uwsg...
On successful completion, pthread_mutexattr_setprotocol() returns 0. Any other return value indicates that an error occurred.If either of the following conditions occurs, pthread_mutexattr_setprotocol() might fail and return the corresponding value....