Home
last modified time | relevance | path

Searched refs:LockedFile (Results 1 – 6 of 6) sorted by relevance

/art/libartbase/base/
Dscoped_flock.h31 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()
Dscoped_flock_test.cc34 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()
Dscoped_flock.cc32 /* 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/
Dprofile_assistant.cc127 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/
Dprofile_compilation_info.cc227 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/
Ddex2oat.cc2567 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()