diff options
author | Gerald Begumisa <ben_g@users.sourceforge.net> | 2008-09-11 19:58:34 +0000 |
---|---|---|
committer | Gerald Begumisa <ben_g@users.sourceforge.net> | 2008-09-11 19:58:34 +0000 |
commit | da7a4eb24c99fa86134599a754a3b65580fb6d1f (patch) | |
tree | ce62848096db409376f8d40815ce7855fcbbc27f | |
parent | 3da9054f481654e346bc52b2c7c0143e2a6dc48c (diff) |
Added THR_DETACHED flag while creating the Pcap threads to solve memory leak issue whereby memory for exited threads is not freed when they exit - pending a call to pthread_join() (or ACE equivalent) which is never called.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@559 09dcff7a-b715-0410-9601-b79a96267cd0
-rw-r--r-- | orkaudio/audiocaptureplugins/voip/VoIp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/orkaudio/audiocaptureplugins/voip/VoIp.cpp b/orkaudio/audiocaptureplugins/voip/VoIp.cpp index 948d364..82921a2 100644 --- a/orkaudio/audiocaptureplugins/voip/VoIp.cpp +++ b/orkaudio/audiocaptureplugins/voip/VoIp.cpp @@ -2820,7 +2820,7 @@ void VoIp::Run() for(std::list<pcap_t*>::iterator it = m_pcapHandles.begin(); it != m_pcapHandles.end(); it++) { - if (!ACE_Thread_Manager::instance()->spawn(ACE_THR_FUNC(SingleDeviceCaptureThreadHandler), *it)) + if (!ACE_Thread_Manager::instance()->spawn(ACE_THR_FUNC(SingleDeviceCaptureThreadHandler), *it, THR_DETACHED)) { LOG4CXX_INFO(s_packetLog, CStdString("Failed to create pcap capture thread")); } |