9#ifndef LLDB_HOST_POSIX_MAINLOOPPOSIX_H
10#define LLDB_HOST_POSIX_MAINLOOPPOSIX_H
12#include "lldb/Host/Config.h"
15#include "llvm/ADT/DenseMap.h"
70 std::list<Callback>::iterator callback_it)
89 llvm::DenseMap<IOObject::WaitableHandle, Callback>
m_read_fds;
static llvm::raw_ostream & error(Stream &strm)
std::unique_ptr< ReadHandle > ReadHandleUP
std::function< void(MainLoopBase &)> Callback
std::list< Callback >::iterator m_callback_it
const SignalHandle & operator=(const SignalHandle &)=delete
SignalHandle(MainLoopPosix &mainloop, int signo, std::list< Callback >::iterator callback_it)
MainLoopPosix & m_mainloop
SignalHandle(const SignalHandle &)=delete
SignalHandleUP RegisterSignal(int signo, const Callback &callback, Status &error)
void UnregisterReadObject(IOObject::WaitableHandle handle) override
ReadHandleUP RegisterReadObject(const lldb::IOObjectSP &object_sp, const Callback &callback, Status &error) override
void ProcessReadObject(IOObject::WaitableHandle handle)
std::atomic< bool > m_interrupting
llvm::DenseMap< int, SignalInfo > m_signals
~MainLoopPosix() override
void Interrupt() override
llvm::DenseMap< IOObject::WaitableHandle, Callback > m_read_fds
void ProcessSignal(int signo)
std::unique_ptr< SignalHandle > SignalHandleUP
void UnregisterSignal(int signo, std::list< Callback >::iterator callback_it)
A posix-based implementation of Pipe, a class that abtracts unix style pipes.
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::IOObject > IOObjectSP
std::list< Callback > callbacks
struct sigaction old_action