Android-cuttlefish cvd tool
|
#include <shared_fd.h>
Public Member Functions | |
WeakFD (SharedFD shared_fd) | |
SharedFD | lock () const |
Private Attributes | |
std::weak_ptr< FileInstance > | value_ |
A non-owning reference to a FileInstance. The referenced FileInstance needs to be managed by a SharedFD. A WeakFD needs to be converted to a SharedFD to access the underlying FileInstance.
|
inline |
SharedFD cuttlefish::WeakFD::lock | ( | ) | const |
|
private |