Home
last modified time | relevance | path

Searched refs:AutoHandle (Results 1 – 7 of 7) sorted by relevance

/llvm-project/lldb/include/lldb/Host/windows/
H A DAutoHandle.h16 class AutoHandle {
18 AutoHandle(HANDLE handle, HANDLE invalid_value = INVALID_HANDLE_VALUE)
21 ~AutoHandle() { in ~AutoHandle()
/llvm-project/lldb/source/Host/windows/
H A DHost.cpp9 #include "lldb/Host/windows/AutoHandle.h"
69 static bool GetExecutableForProcess(const AutoHandle &handle, in GetExecutableForProcess()
80 static void GetProcessExecutableAndTriple(const AutoHandle &handle, in GetProcessExecutableAndTriple()
106 AutoHandle handle(::OpenProcess(PROCESS_TERMINATE, FALSE, pid), nullptr); in Kill()
140 AutoHandle snapshot(CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0)); in FindProcessesImpl()
148 AutoHandle handle(::OpenProcess(PROCESS_QUERY_LIMITED_INFORMATION, FALSE, in FindProcessesImpl()
170 AutoHandle handle( in GetProcessInfo()
181 AutoHandle snapshot(CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0)); in GetProcessInfo()
/llvm-project/third-party/unittest/googletest/src/
H A Dgtest-port.cc275 AutoHandle::AutoHandle() : handle_(INVALID_HANDLE_VALUE) {} in AutoHandle() function in testing::internal::AutoHandle
277 AutoHandle::AutoHandle(Handle handle) : handle_(handle) {} in AutoHandle() function in testing::internal::AutoHandle
279 AutoHandle::~AutoHandle() { Reset(); } in ~AutoHandle()
281 AutoHandle::Handle AutoHandle::Get() const { return handle_; } in Get()
283 void AutoHandle::Reset() { Reset(INVALID_HANDLE_VALUE); } in Reset()
285 void AutoHandle::Reset(HANDLE handle) { in Reset()
299 bool AutoHandle::IsCloseable() const { in IsCloseable()
H A Dgtest-death-test.cc689 AutoHandle write_handle_;
691 AutoHandle child_handle_;
696 AutoHandle event_handle_;
1472 AutoHandle parent_process_handle(::OpenProcess(PROCESS_DUP_HANDLE, in GetStatusFileDescriptor()
/llvm-project/third-party/unittest/googletest/include/gtest/internal/
H A Dgtest-port.h1198 class GTEST_API_ AutoHandle {
1206 AutoHandle();
1207 explicit AutoHandle(Handle handle);
1209 ~AutoHandle();
1222 AutoHandle(const AutoHandle&) = delete;
1223 AutoHandle& operator=(const AutoHandle&) = delete;
1501 AutoHandle thread_;
/llvm-project/lldb/source/Plugins/Process/Windows/Common/
H A DDebuggerThread.cpp16 #include "lldb/Host/windows/AutoHandle.h"
455 AutoHandle filemap( in GetFileNameFromHandleFallback()
H A DNativeProcessWindows.cpp18 #include "lldb/Host/windows/AutoHandle.h"
344 AutoHandle snapshot(CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, GetID())); in CacheLoadedModules()