Searched refs:LockedFile (Results 1 – 7 of 7) sorted by relevance
/art/libartbase/base/ |
D | scoped_flock.h | 31 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()
|
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 | 118 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/ |
D | metrics_common.cc | 169 LockedFile::Open(filename_.c_str(), O_CREAT | O_WRONLY | O_APPEND, true, &error_message)}; in EndReport()
|
/art/libprofile/profile/ |
D | profile_compilation_info.cc | 740 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/ |
D | image_space.cc | 2960 ScopedFlock image = LockedFile::Open(image_filename.c_str(), in Load()
|