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

/art/runtime/base/
H A Dscoped_flock.cc43 int flock_result = TEMP_FAILURE_RETRY(flock(file_->Fd(), operation));
93 if (0 != TEMP_FAILURE_RETRY(flock(file_->Fd(), LOCK_EX))) {
115 int flock_result = TEMP_FAILURE_RETRY(flock(file_->Fd(), LOCK_UN));
/art/profman/
H A Dprofile_assistant.cc72 static bool InitFlock(const std::string& filename, ScopedFlock& flock, std::string* error) { argument
73 return flock.Init(filename.c_str(), O_RDWR, /* block */ true, error);
76 static bool InitFlock(int fd, ScopedFlock& flock, std::string* error) { argument
81 return flock.Init(&file, error);
/art/runtime/jit/
H A Doffline_profiling_info.cc80 ScopedFlock flock; local
82 if (!flock.Init(filename.c_str(), O_RDWR | O_NOFOLLOW | O_CLOEXEC, /* block */ false, &error)) {
87 int fd = flock.GetFile()->Fd();
120 if (!flock.GetFile()->ClearContent()) {
/art/runtime/
H A Dprofiler.cc283 int err = flock(fd, LOCK_EX);
314 err = flock(fd, LOCK_UN);
/art/dex2oat/
H A Ddex2oat.cc1905 ScopedFlock flock; local
1912 if (flock.Init(&file, &error)) {
1916 if (flock.Init(profile_file_.c_str(), O_RDONLY, /* block */ true, &error)) {
1917 success = profile_compilation_info_->Load(flock.GetFile()->Fd());

Completed in 130 milliseconds