Home | History | Annotate | Download | only in disk_cache

Lines Matching full:lock

15 // This class implements a file lock that lives on the header of a memory mapped
16 // file. This is NOT a thread related lock, it is a lock to detect corruption
18 // The lock is acquired on the constructor and released on the destructor.
22 // FileLock lock(header);
24 // // At this point the destructor is going to release the lock.
26 // It is important to perform Lock() and Unlock() operations in the right order,
27 // because otherwise the desired effect of the "lock" will not be achieved. If
29 // outside the lock.
37 virtual void Lock();