1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-16 01:21:25 +01:00

More consistent mutual exclusion in calls to certain sf_ functions; ...

... also SFCall to simplify thread-safe calls, and SFFile for RAII of SNDFILE
objects.
This commit is contained in:
Paul Licameli
2016-04-12 15:59:17 -04:00
parent 24df87bb4c
commit 61177a15ad
11 changed files with 360 additions and 384 deletions

View File

@@ -51,17 +51,6 @@ int CompareNoCaseFileName(const wxString& first, const wxString& second)
return first.CmpNoCase(second);
}
void ODManager::LockLibSndFileMutex()
{
sLibSndFileMutex.Lock();
}
void ODManager::UnlockLibSndFileMutex()
{
sLibSndFileMutex.Unlock();
}
//private constructor - Singleton.
ODManager::ODManager()
{

View File

@@ -119,9 +119,6 @@ class ODManager final
Pauser &operator= (const Pauser&) PROHIBITED;
};
static void LockLibSndFileMutex();
static void UnlockLibSndFileMutex();
protected: