Android-cuttlefish cvd tool
Public Member Functions | Static Public Member Functions | List of all members
cuttlefish::LockFileManager Class Reference

#include <lock_file.h>

Public Member Functions

 LockFileManager ()=default
 
Result< LockFileAcquireLock (const std::string &lock_file_path)
 
Result< std::optional< LockFile > > TryAcquireLock (const std::string &lock_file_path)
 

Static Public Member Functions

static Result< SharedFDOpenLockFile (const std::string &file_path)
 

Constructor & Destructor Documentation

◆ LockFileManager()

cuttlefish::LockFileManager::LockFileManager ( )
default

Member Function Documentation

◆ AcquireLock()

Result< LockFile > cuttlefish::LockFileManager::AcquireLock ( const std::string &  lock_file_path)

◆ OpenLockFile()

Result< SharedFD > cuttlefish::LockFileManager::OpenLockFile ( const std::string &  file_path)
static

◆ TryAcquireLock()

Result< std::optional< LockFile > > cuttlefish::LockFileManager::TryAcquireLock ( const std::string &  lock_file_path)

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