LLDB mainline
Classes | Public Member Functions | Protected Attributes | List of all members
SelectHelper Class Reference

#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, FDInfom_fd_map
 
std::optional< std::chrono::steady_clock::time_point > m_end_time
 

Detailed Description

Definition at line 20 of file SelectHelper.h.

Constructor & Destructor Documentation

◆ SelectHelper()

SelectHelper::SelectHelper ( )

Definition at line 39 of file SelectHelper.cpp.

Member Function Documentation

◆ FDIsSetError()

bool SelectHelper::FDIsSetError ( lldb::socket_t  fd) const

Definition at line 77 of file SelectHelper.cpp.

References m_fd_map.

◆ FDIsSetRead()

bool SelectHelper::FDIsSetRead ( lldb::socket_t  fd) const

◆ FDIsSetWrite()

bool SelectHelper::FDIsSetWrite ( lldb::socket_t  fd) const

Definition at line 69 of file SelectHelper.cpp.

References m_fd_map.

◆ FDSetError()

void SelectHelper::FDSetError ( lldb::socket_t  fd)

Definition at line 57 of file SelectHelper.cpp.

References m_fd_map.

◆ FDSetRead()

void SelectHelper::FDSetRead ( lldb::socket_t  fd)

◆ FDSetWrite()

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().

◆ Select()

lldb_private::Status SelectHelper::Select ( )

◆ SetTimeout()

void SelectHelper::SetTimeout ( const std::chrono::microseconds &  timeout)

Member Data Documentation

◆ m_end_time

std::optional<std::chrono::steady_clock::time_point> SelectHelper::m_end_time
protected

Definition at line 68 of file SelectHelper.h.

Referenced by Select(), and SetTimeout().

◆ m_fd_map

llvm::DenseMap<lldb::socket_t, FDInfo> SelectHelper::m_fd_map
protected

The documentation for this class was generated from the following files: