Apache SINGA
A distributed deep learning platform .
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Macros
Public Member Functions | List of all members
singa::BasePoller Class Referenceabstract
Inheritance diagram for singa::BasePoller:
singa::Poller

Public Member Functions

virtual void Add (Socket *socket)=0
 Add a socket for polling; Multiple sockets can be polled together by adding them into the same poller.
 
virtual SocketWait (int timeout)=0
 Poll for all sockets added into this poller. More...
 

Member Function Documentation

virtual Socket* singa::BasePoller::Wait ( int  timeout)
pure virtual

Poll for all sockets added into this poller.

Parameters
timeoutstop after this number of mseconds
Returns
pointer to the socket if it has one message in the receiving queue; nullptr if no message in any sockets,

Implemented in singa::Poller.


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