attr指定已初始化的属性对象。 pshared指定要获取和设置的读写锁属性对象的进程共享属性。 返回值 如果成功,pthread_rwlockattr_setpshared子例程将返回零。 否则,将返回错误号以指示错误。 成功完成时,pthread_rwlockattr_getpshared子例程返回零,并将进程共享属性attr的值存储到pshared参数引用的对象中。 否...
#include <pthread.h> int pthread_rwlockattr_getpshared(const pthread_rwlockattr_t *attr, int *pshared); Service Program Name: QP0WPTHR Default Public Authority: *USE Threadsafe: Yes Signal Safe: YesThe pthread_rwlockattr_getpshared() function retrieves the current setting of the process ...
If successful, thepthread_rwlockattr_setpsharedsubroutine returns zero. Otherwise, an error number is returned to indicate the error. Upon successful completion, thepthread_rwlockattr_getpsharedsubroutine returns zero and stores the value of the process-shared attribute ofattrinto the object r...