Home
last modified time | relevance | path

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

/art/libartbase/base/
Dscoped_flock.h31 class LockedFile; variable
35 using ScopedFlock = std::unique_ptr<LockedFile, LockedFileCloseNoFlush>;
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.cc118 flocks_[i] = LockedFile::Open(filenames[i].c_str(), O_RDWR, /* block= */ true, error); in Init()
131 flocks_[i] = LockedFile::DupOf(fds[i], "profile-file", in Init()
163 ScopedFlock reference_profile_file = LockedFile::DupOf(reference_profile_file_fd, in ProcessProfiles()
191 ScopedFlock locked_reference_profile_file = LockedFile::Open( in ProcessProfiles()
/art/libartbase/base/metrics/
Dmetrics_common.cc169 LockedFile::Open(filename_.c_str(), O_CREAT | O_WRONLY | O_APPEND, true, &error_message)}; in EndReport()
/art/libprofile/profile/
Dprofile_compilation_info.cc740 LockedFile::Open(filename.c_str(), flags, /*block=*/false, &error); in MergeWith()
775 LockedFile::Open(filename.c_str(), flags, /*block=*/false, &error); in Load()
819 LockedFile::Open(filename.c_str(), flags, /*block=*/false, &error); in Save()
/art/runtime/gc/space/
Dimage_space.cc2960 ScopedFlock image = LockedFile::Open(image_filename.c_str(), in Load()