Searched refs:LockedFile (Results 1 – 6 of 6) sorted by relevance
/art/libartbase/base/ |
D | scoped_flock.h | 31 class LockedFile; variable 35 typedef std::unique_ptr<LockedFile, LockedFileCloseNoFlush> ScopedFlock; 37 class LockedFile : public unix_file::FdFile { 66 explicit LockedFile(FdFile&& other) : FdFile(std::move(other)) { in LockedFile() function 71 LockedFile(int fd, const std::string& path, bool check_usage, bool read_only_mode) in LockedFile() function 78 void operator()(LockedFile* ptr) { in operator()
|
D | scoped_flock_test.cc | 34 ScopedFlock file_lock = LockedFile::Open(scratch_file.GetFilename().c_str(), in TEST_F() 39 ScopedFlock second_lock = LockedFile::Open(scratch_file.GetFilename().c_str(), in TEST_F() 50 ScopedFlock file_lock = LockedFile::Open(scratch_file.GetFilename().c_str(), in TEST_F() 56 ScopedFlock file_lock = LockedFile::Open("/will/not/exist", in TEST_F()
|
D | scoped_flock.cc | 32 /* static */ ScopedFlock LockedFile::Open(const char* filename, std::string* error_msg) { in Open() 36 /* static */ ScopedFlock LockedFile::Open(const char* filename, int flags, bool block, in Open() 98 return ScopedFlock(new LockedFile(std::move((*file.get())))); in Open() 103 ScopedFlock LockedFile::DupOf(const int fd, const std::string& path, in DupOf() 119 new LockedFile(DupCloexec(fd), path, /* check_usage= */ false, read_only_mode)); in DupOf() 135 void LockedFile::ReleaseLock() { in ReleaseLock()
|
/art/profman/ |
D | profile_assistant.cc | 127 flocks_[i] = LockedFile::Open(filenames[i].c_str(), O_RDWR, /* block= */ true, error); in Init() 140 flocks_[i] = LockedFile::DupOf(fds[i], "profile-file", in Init() 172 ScopedFlock reference_profile_file = LockedFile::DupOf(reference_profile_file_fd, in ProcessProfiles() 200 ScopedFlock locked_reference_profile_file = LockedFile::Open( in ProcessProfiles()
|
/art/libprofile/profile/ |
D | profile_compilation_info.cc | 227 LockedFile::Open(filename.c_str(), flags, /*block=*/false, &error); in MergeWith() 262 LockedFile::Open(filename.c_str(), flags, /*block=*/false, &error); in Load() 304 LockedFile::Open(filename.c_str(), flags, /*block=*/false, &error); in Save()
|
/art/dex2oat/ |
D | dex2oat.cc | 2567 profile_file = LockedFile::DupOf(profile_file_fd_, "profile", in LoadProfile() 2570 profile_file = LockedFile::Open(profile_file_.c_str(), O_RDONLY, true, &error); in LoadProfile()
|