llvm-project/lldb/source/Host/windows
Pavel Labath 998bdc5b75 Generalize child process monitoring functions
Summary:
This replaces the C-style "void *" baton of the child process monitoring functions with a more
C++-like API taking a std::function. The motivation for this was that it was very difficult to
handle the ownership of the object passed into the callback function -- each caller ended up
implementing his own way of doing it, some doing it better than others. With the new API, one can
just pass a smart pointer into the callback and all of the lifetime management will be handled
automatically.

This has enabled me to simplify the rather complicated handshake in Host::RunShellCommand. I have
left handling of MonitorDebugServerProcess (my original motivation for this change) to a separate
commit to reduce the scope of this change.

Reviewers: clayborg, zturner, emaste, krytarowski

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D20106

llvm-svn: 269205
2016-05-11 16:59:04 +00:00
..
Condition.cpp Windows fix: Condition::Wait returned failure when it actually succeeded (SleepConditionVariableCS returns non-zero for success) 2014-06-03 14:33:41 +00:00
ConnectionGenericFileWindows.cpp Unicode support on Win32. 2016-03-22 17:58:09 +00:00
EditLineWin.cpp Fix typos. 2015-07-22 00:16:02 +00:00
FileSystem.cpp Unicode support on Win32. 2016-03-22 17:58:09 +00:00
Host.cpp Generalize child process monitoring functions 2016-05-11 16:59:04 +00:00
HostInfoWindows.cpp Unicode support on Win32. 2016-03-22 17:58:09 +00:00
HostProcessWindows.cpp Generalize child process monitoring functions 2016-05-11 16:59:04 +00:00
HostThreadWindows.cpp Only compile RegisterContextWindows_x86.cpp for x86 host architecture. 2014-12-18 18:21:33 +00:00
LockFileWindows.cpp Don't close handle returned by _get_osfhandle. 2015-06-01 18:52:16 +00:00
Mutex.cpp
PipeWindows.cpp Unicode support on Win32. 2016-03-22 17:58:09 +00:00
ProcessLauncherWindows.cpp Unicode support on Win32. 2016-03-22 17:58:09 +00:00
ProcessRunLock.cpp Don't bother dynamic loading the Windows Slim RW Lock API. 2015-05-14 22:50:19 +00:00
ThisThread.cpp Fix warnings generated by clang-cl. 2015-04-02 20:57:38 +00:00
Windows.cpp Fix Windows build. 2016-04-19 01:09:37 +00:00