LLDB mainline
|
#include <SelectHelper.h>
Classes | |
struct | FDInfo |
Public Member Functions | |
SelectHelper () | |
void | SetTimeout (const std::chrono::microseconds &timeout) |
void | FDSetRead (lldb::socket_t fd) |
void | FDSetWrite (lldb::socket_t fd) |
void | FDSetError (lldb::socket_t fd) |
bool | FDIsSetRead (lldb::socket_t fd) const |
bool | FDIsSetWrite (lldb::socket_t fd) const |
bool | FDIsSetError (lldb::socket_t fd) const |
lldb_private::Status | Select () |
Protected Attributes | |
llvm::DenseMap< lldb::socket_t, FDInfo > | m_fd_map |
std::optional< std::chrono::steady_clock::time_point > | m_end_time |
Definition at line 20 of file SelectHelper.h.
SelectHelper::SelectHelper | ( | ) |
Definition at line 39 of file SelectHelper.cpp.
bool SelectHelper::FDIsSetError | ( | lldb::socket_t | fd | ) | const |
Definition at line 77 of file SelectHelper.cpp.
References m_fd_map.
bool SelectHelper::FDIsSetRead | ( | lldb::socket_t | fd | ) | const |
Definition at line 61 of file SelectHelper.cpp.
References m_fd_map.
Referenced by lldb_private::ConnectionFileDescriptor::BytesAvailable(), and IOHandlerProcessSTDIO::Run().
bool SelectHelper::FDIsSetWrite | ( | lldb::socket_t | fd | ) | const |
Definition at line 69 of file SelectHelper.cpp.
References m_fd_map.
void SelectHelper::FDSetError | ( | lldb::socket_t | fd | ) |
Definition at line 57 of file SelectHelper.cpp.
References m_fd_map.
void SelectHelper::FDSetRead | ( | lldb::socket_t | fd | ) |
Definition at line 49 of file SelectHelper.cpp.
References m_fd_map.
Referenced by lldb_private::ConnectionFileDescriptor::BytesAvailable(), IsInputPending(), lldb_private::PipePosix::ReadWithTimeout(), and IOHandlerProcessSTDIO::Run().
void SelectHelper::FDSetWrite | ( | lldb::socket_t | fd | ) |
Definition at line 53 of file SelectHelper.cpp.
References m_fd_map.
Referenced by lldb_private::PipePosix::WriteWithTimeout().
lldb_private::Status SelectHelper::Select | ( | ) |
Definition at line 93 of file SelectHelper.cpp.
References lldb::eErrorTypePOSIX, error(), lldbassert, m_end_time, m_fd_map, and updateMaxFd().
Referenced by lldb_private::ConnectionFileDescriptor::BytesAvailable(), IsInputPending(), lldb_private::PipePosix::ReadWithTimeout(), IOHandlerProcessSTDIO::Run(), and lldb_private::PipePosix::WriteWithTimeout().
void SelectHelper::SetTimeout | ( | const std::chrono::microseconds & | timeout | ) |
Definition at line 44 of file SelectHelper.cpp.
References m_end_time.
Referenced by lldb_private::ConnectionFileDescriptor::BytesAvailable(), IsInputPending(), lldb_private::PipePosix::ReadWithTimeout(), and lldb_private::PipePosix::WriteWithTimeout().
|
protected |
Definition at line 68 of file SelectHelper.h.
Referenced by Select(), and SetTimeout().
|
protected |
Definition at line 67 of file SelectHelper.h.
Referenced by FDIsSetError(), FDIsSetRead(), FDIsSetWrite(), FDSetError(), FDSetRead(), FDSetWrite(), and Select().