1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 07:43:54 +02:00

Comments about CloseLock() functions

This commit is contained in:
Paul Licameli
2016-04-11 23:38:33 -04:00
parent cfaf3564a2
commit f7780adbf5
6 changed files with 16 additions and 6 deletions

View File

@@ -122,7 +122,8 @@ class PROFILE_DLL_API BlockFile /* not final, abstract */ {
void SilenceLog() const { mSilentLog = TRUE; }
///when the project closes, it locks the blockfiles.
///Override this in case it needs special treatment
///Override this in case it needs special treatment.
// not balanced by unlocking calls.
virtual void CloseLock(){Lock();}
/// Prevents a read on other threads. The basic blockfile runs on only one thread, so does nothing.