
Hello. I'm using boost.thread as static library and it seems there is a resource leak here. Please explain me setting of tss_hook and other tss_* files. I think it helps me to check if my assumptions are correct. File tss_hooks.cpp contains the following code: // ... // because we cannot delete it again easily. CRITICAL_SECTION threadmon_mutex; void init_threadmon_mutex(void) { //threadmon_mutex = new boost::mutex; //if (!threadmon_mutex) // throw boost::thread_resource_error(); ::InitializeCriticalSection(&threadmon_mutex); } // ... But I didn't find any place where library calls DeleteCriticalSection for threadmon_mutex. Is it resource leak or its my misundertanding? Thank you. -- Best Regards, Dmitriy Lyfar