]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Common/Thread: pthread_attr_destroy(thread_attr) when done with it 6325/head
authorzqkkqz <zheng.qiankun@h3c.com>
Fri, 7 Aug 2015 02:49:45 +0000 (10:49 +0800)
committerLoic Dachary <ldachary@redhat.com>
Tue, 20 Oct 2015 09:37:30 +0000 (11:37 +0200)
commit81bb6dd7de8a191c11c16b3cdc07355ef3434435
tree747eede28f6525422c81b2eee852294250df3ee1
parent77d6426a8323db91a60f246f385826c35f31521c
Common/Thread: pthread_attr_destroy(thread_attr) when done with it
When a thread attributes object is no longer required, it should be destroyed using the
pthread_attr_destroy() function. Destroying a thread attributes object has no effect on threads that were created using that object.

Fixes: #12570
Signed-off-by: zqkqkz zheng.qiankun@h3c.com
(cherry picked from commit 9471bb838a420ef5f439191d87e5388fecccb9e6)
src/common/Thread.cc