33.5. 뮤지션 특성 개체 정리
Mutex 특성 개체를 사용하여 Mutex를 만든 후에는 특성 개체를 유지하여 동일한 형식의 더 많은 뮤지션을 초기화하거나 정리할 수 있습니다.After the mutex has been created using the mutex attribute object, you can keep the attribute object to initialize more mutexes of the same type, or you can clean it up. 뮤지컬은 두 경우 모두 영향을 받지 않습니다.
프로세스
pthread_mutexattr_destroy()함수를 사용하여 특성 오브젝트를 정리합니다.pthread_mutexattr_destroy(&my_mutex_attr);뮤지션은 이제 일반 pthread_mutex 로 작동하며 정상적으로 잠금 해제, 잠금 해제 및 삭제할 수 있습니다.
작은 정보자세한 내용은 시스템의
futex(7),pthread_mutex_destroy(P),pthread_mutexattr_setprotocol(3p)및pthread_mutexattr_setprioceiling(3p)매뉴얼 페이지를 참조하십시오.