mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-15 00:51:21 +01:00
Comments about CloseLock() functions
This commit is contained in:
@@ -129,7 +129,8 @@ void ODPCMAliasBlockFile::Lock()
|
||||
PCMAliasBlockFile::Lock();
|
||||
}
|
||||
|
||||
//when the file closes, it locks the blockfiles, but it calls this so we can check if it has been saved before.
|
||||
//when the file closes, it locks the blockfiles, but only conditionally.
|
||||
// It calls this so we can check if it has been saved before.
|
||||
void ODPCMAliasBlockFile::CloseLock()
|
||||
{
|
||||
if(mHasBeenSaved)
|
||||
|
||||
@@ -127,7 +127,9 @@ class ODPCMAliasBlockFile final : public PCMAliasBlockFile
|
||||
void SetFileName(wxFileName &name) override;
|
||||
wxFileName GetFileName() const override;
|
||||
|
||||
//when the file closes, it locks the blockfiles, but it calls this so we can check if it has been saved before.
|
||||
//when the file closes, it locks the blockfiles, but only conditionally.
|
||||
// It calls this so we can check if it has been saved before.
|
||||
// not balanced by unlocking calls.
|
||||
void CloseLock() override;
|
||||
|
||||
/// Prevents a read on other threads.
|
||||
|
||||
Reference in New Issue
Block a user