Android-cuttlefish cvd tool
Classes | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
cuttlefish::cvd_impl::LockFile Class Reference

#include <lock_file.h>

Collaboration diagram for cuttlefish::cvd_impl::LockFile:
Collaboration graph
[legend]

Classes

class  LockFileReleaser
 

Public Member Functions

const auto & LockFilePath () const
 
Result< InUseStateStatus () const
 
Result< void > Status (InUseState)
 
bool operator< (const LockFile &other) const
 

Private Member Functions

 LockFile (SharedFD fd, const std::string &lock_file_path)
 

Private Attributes

SharedFD fd_
 
const std::string lock_file_path_
 
std::shared_ptr< LockFileReleaserlock_file_lock_releaser_
 

Friends

class LockFileManager
 

Constructor & Destructor Documentation

◆ LockFile()

cuttlefish::cvd_impl::LockFile::LockFile ( SharedFD  fd,
const std::string &  lock_file_path 
)
private

Member Function Documentation

◆ LockFilePath()

const auto & cuttlefish::cvd_impl::LockFile::LockFilePath ( ) const
inline

◆ operator<()

bool cuttlefish::cvd_impl::LockFile::operator< ( const LockFile other) const

◆ Status() [1/2]

Result< InUseState > cuttlefish::cvd_impl::LockFile::Status ( ) const

◆ Status() [2/2]

Result< void > cuttlefish::cvd_impl::LockFile::Status ( InUseState  state)

Friends And Related Function Documentation

◆ LockFileManager

friend class LockFileManager
friend

Member Data Documentation

◆ fd_

SharedFD cuttlefish::cvd_impl::LockFile::fd_
private

◆ lock_file_lock_releaser_

std::shared_ptr<LockFileReleaser> cuttlefish::cvd_impl::LockFile::lock_file_lock_releaser_
private

◆ lock_file_path_

const std::string cuttlefish::cvd_impl::LockFile::lock_file_path_
private

The documentation for this class was generated from the following files: