Home
last modified time | relevance | path

Searched refs:flock (Results 1 – 5 of 5) sorted by relevance

/art/profman/
Dprofile_assistant.cc72 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/
Dscoped_flock.cc43 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/
Doffline_profiling_info.cc80 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/
Dprofiler.cc283 int err = flock(fd, LOCK_EX); in WriteProfile()
314 err = flock(fd, LOCK_UN); in WriteProfile()
/art/dex2oat/
Ddex2oat.cc1879 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()