Improve the use of threads and sleep when not in use

This commit is contained in:
jfmcarreira committed 2021-09-07 02:00:30 +01:00
1 parent bf5235352b
commit ffe1bf688d
15 files changed
+164 -129

No files matched your search

+1 -11
View File
@@ -45,17 +45,7 @@ CalypTools::CalypTools()
m_pcCurrModuleIf = NULL;
}
CalypTools::~CalypTools()
{
for( unsigned int i = 0; i < m_apcInputStreams.size(); i++ )
{
m_apcInputStreams[i]->close();
}
for( unsigned int i = 0; i < m_apcOutputStreams.size(); i++ )
{
m_apcOutputStreams[i]->close();
}
}
CalypTools::~CalypTools() = default;
#define GET_PARAM( X, i ) X[X.size() > i ? i : X.size() - 1]