A new frontier in large-scale graph analysis and data mining
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
safs::io_select Class Referenceabstract

#include <io_interface.h>

Public Member Functions

virtual bool add_io (io_interface::ptr io)=0
virtual int num_pending_ios () const =0

Detailed Description

This is equivalent to select() in Linux. Users can register multiple I/O instances to this object and wait for I/O completion from all of the I/O instances. Each type of I/O instance has its own io_select. Users have to add an I/O instance to the right I/O select.

Member Function Documentation

virtual bool safs::io_select::add_io ( io_interface::ptr  io)
pure virtual

Add an I/O instance to the I/O select. If the type of I/O stance doesn't match with the I/O select, the registration fails.

virtual int safs::io_select::num_pending_ios ( ) const
pure virtual

The total number of pending I/O requests in all of the registered I/O instances.

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