mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 07:13:49 +01:00
Exception safety in: ondemand
This commit is contained in:
@@ -348,10 +348,9 @@ bool ODPCMAliasBlockFile::IsSummaryAvailable() const
|
||||
///Calls write summary, and makes sure it is only done once in a thread-safe fashion.
|
||||
void ODPCMAliasBlockFile::DoWriteSummary()
|
||||
{
|
||||
mWriteSummaryMutex.Lock();
|
||||
ODLocker locker { &mWriteSummaryMutex };
|
||||
if(!IsSummaryAvailable())
|
||||
WriteSummary();
|
||||
mWriteSummaryMutex.Unlock();
|
||||
}
|
||||
|
||||
///sets the file name the summary info will be saved in. threadsafe.
|
||||
|
||||
Reference in New Issue
Block a user