Searched refs:flock (Results 1 – 5 of 5) sorted by relevance
/art/profman/ |
D | profile_assistant.cc | 72 static bool InitFlock(const std::string& filename, ScopedFlock& flock, std::string* error) { in InitFlock() argument 73 return flock.Init(filename.c_str(), O_RDWR, /* block */ true, error); in InitFlock() 76 static bool InitFlock(int fd, ScopedFlock& flock, std::string* error) { in InitFlock() argument 81 return flock.Init(&file, error); in InitFlock()
|
/art/runtime/base/ |
D | scoped_flock.cc | 43 int flock_result = TEMP_FAILURE_RETRY(flock(file_->Fd(), operation)); in Init() 93 if (0 != TEMP_FAILURE_RETRY(flock(file_->Fd(), LOCK_EX))) { in Init() 115 int flock_result = TEMP_FAILURE_RETRY(flock(file_->Fd(), LOCK_UN)); in ~ScopedFlock()
|
/art/runtime/jit/ |
D | offline_profiling_info.cc | 80 ScopedFlock flock; in MergeAndSave() local 82 if (!flock.Init(filename.c_str(), O_RDWR | O_NOFOLLOW | O_CLOEXEC, /* block */ false, &error)) { in MergeAndSave() 87 int fd = flock.GetFile()->Fd(); in MergeAndSave() 120 if (!flock.GetFile()->ClearContent()) { in MergeAndSave()
|
/art/runtime/ |
D | profiler.cc | 283 int err = flock(fd, LOCK_EX); in WriteProfile() 314 err = flock(fd, LOCK_UN); in WriteProfile()
|
/art/dex2oat/ |
D | dex2oat.cc | 1879 ScopedFlock flock; in LoadProfile() local 1886 if (flock.Init(&file, &error)) { in LoadProfile() 1890 if (flock.Init(profile_file_.c_str(), O_RDONLY, /* block */ true, &error)) { in LoadProfile() 1891 success = profile_compilation_info_->Load(flock.GetFile()->Fd()); in LoadProfile()
|