成功完成时,pthread_mutexattr_getprotocol子例程和pthread_mutexattr_setprotocol子例程将返回零; 否则,将返回错误号以指示错误。 错误代码 pthread_mutexattr_setprotocol子例程在下列情况下失败: 在下列情况下,pthread_mutexattr_getprotocol子例程和pthread_mutexattr_setprotocol子例程可能会失败:...
The pthread_mutexattr_setprotocol() and pthread_mutexattr_getprotocol() functions, respectively, set and get the protocol attribute of a mutex attribute object pointed...
pthread_mutexattr_getprotocol , pthread_mutexattr_setprotocol - get or set protocol attribute of mutex attribute object