id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 1958,thread_specific_ptr lacks support for NULL cleanup function,Bryan Green ,Anthony Williams,"Passing a null pointer as the cleanup_function argument to the thread_specific_ptr constructor leads to a null dereference and a program crash. Use of a null cleanup function is well defined in the pthread API: it means that no cleanup is to be performed. Boost::Thread currently lacks this mode, requiring the programmer to define a specialized empty function any time a thread_specific_ptr is created where no cleanup is desired. I'm filing this as a bug, since it represents a common practice, well supported and documented in the pthread API, which in boost leads to a program crash. I'm attaching a patch representing a potential implementation of NULL-cleanup-function support. ",Bugs,closed,Boost 1.36.0,thread,Boost Development Trunk,Problem,fixed,cleanup_function tss thread_specific_ptr,