Lines Matching refs:handle_
39 GenericScopedHandle() : handle_(Traits::NullHandle()) {} in GenericScopedHandle()
41 explicit GenericScopedHandle(Handle handle) : handle_(Traits::NullHandle()) { in GenericScopedHandle()
46 : handle_(Traits::NullHandle()) { in GenericScopedHandle()
52 bool IsValid() const { return Traits::IsHandleValid(handle_); } in IsValid()
61 if (handle_ != handle) { in Set()
67 handle_ = handle; in Set()
73 Handle Get() const { return handle_; } in Get()
77 Handle temp = handle_; in Take()
78 handle_ = Traits::NullHandle(); in Take()
84 if (Traits::IsHandleValid(handle_)) { in Close()
85 Traits::CloseHandle(handle_); in Close()
86 handle_ = Traits::NullHandle(); in Close()
93 Handle handle_; variable