pthread属性オブジェクトは、それらを使用するオブジェクトの存続期間中存在する必要がありますか、それとも使用後すぐに破棄しても安全ですか?例えば:
// Create the mutex attributes.
pthread_mutexattr_t attributes;
pthread_mutexattr_init( &attributes );
pthread_mutexattr_settype( &attributes, PTHREAD_MUTEX_NORMAL );
// Create the mutex using the attributes from above.
pthread_mutex_t mutex;
pthread_mutex_init( &mutex, &attributes );
属性はpthread_mutexattr_destroy()で安全に破棄できるようになりましたか、それともミューテックスがpthread_mutex_destroy()で破棄されるまで待つ必要がありますか?
同じことが属性を使用する他のpthreadオブジェクトにも当てはまりますか?