BugFix: give time to Save on exit and stop recordings on Quit

This commit is contained in:
Bruno Herbelin
2022-01-16 19:16:51 +01:00
parent e52785a8b4
commit e96444671e
7 changed files with 74 additions and 35 deletions

View File

@@ -602,6 +602,14 @@ void Session::unlock()
access_.unlock();
}
bool Session::locked()
{
bool l = access_.try_lock();
if (l)
access_.unlock();
return !l;
}
void Session::validate (SourceList &sources)
{
// verify that all sources given are valid in the sesion