commit | a3d27ebd2802fd6031cc928a67752541775bf52b | [log] [tgz] |
---|---|---|
author | Narayan Kamath <narayan@google.com> | Thu May 11 13:50:59 2017 +0100 |
committer | Narayan Kamath <narayan@google.com> | Wed Jun 14 10:29:55 2017 +0100 |
tree | 96c4a460fbf81fd00b8c71063f5ef9ae3bc56eda | |
parent | d38b67c9892b603f57a6b51a1b9d7f4e610158aa [diff] |
ScopedFlock: Refactor it to be a subclass of FdFile. Makes callers cleaner, since they only have to worry about dealing with regular File objects that they know will be locked for the duration of their existence. Prevents issues and other clunky code relating to acquire Test: scoped_flock_test, test_art_host Bug: 36369345 Change-Id: I2c9644e448acde6ddac472d88108c7d9a4e1a892