I have a concurrentqueue of shared_ptr's pointing to buffers. When my program terminates the concurrentqueue destructor calls the shared_ptr destructors which free all the buffers. It takes significant time to free all the buffers. Since the program is terminating I'd rather just release the memory without calling the destructors and let the OS reclaim it.
I have a concurrentqueue of shared_ptr's pointing to buffers. When my program terminates the concurrentqueue destructor calls the shared_ptr destructors which free all the buffers. It takes significant time to free all the buffers. Since the program is terminating I'd rather just release the memory without calling the destructors and let the OS reclaim it.