]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Common/Thread: pthread_attr_destroy(thread_attr) when done with it 6157/head
authorzqkkqz <zheng.qiankun@h3c.com>
Fri, 7 Aug 2015 02:49:45 +0000 (10:49 +0800)
committerLoic Dachary <ldachary@redhat.com>
Fri, 2 Oct 2015 14:00:29 +0000 (16:00 +0200)
commitf1271eae0decf4d1fd9cfd83e5e54d3be6abfb17
tree2355d4bb6b71df240bb3f9b28dbf66558fd719c6
parent9581f9f4446ed5838bb3de6e1d7cf5faca85df90
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