多线程编程指南

pthread_rwlockattr_destroy 语法

#include <pthread.h>



int pthread_rwlockattr_destroy(pthread_rwlockattr_t *attr);

在再次调用 pthread_rwlockattr_init() 重新初始化该对象之前,使用该对象所产生的影响是不确定的。实现可以导致 pthread_rwlockattr_destroy()attr 所引用的对象设置为无效值。