Improve the use of threads and sleep when not in use
This commit is contained in:
15 files changed
+164
-129
No files matched your search
+1
-11
@@ -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]
|
||||
|
||||
|
||||
Reference in new issue
Block a user