|
ATLAS Offline Software
|
Go to the documentation of this file.
8 """! Read an output stream without blocking.
10 see http://eyalarubas.com/python-subproc-nonblock.html
11 @author James Robinson <james.robinson@cern.ch>
15 """! Set up input stream, output queue and process to transfer between them."""
25 """! Collect lines from stream and put them in queue."""
27 line = stream.readline()
32 """! Return lines from queue."""
34 output = self.
_queue.
get(block=(timeout
is not None), timeout=timeout).rstrip()
35 return (output, self.
_queue.qsize())
40 """! Release thread resources on finalise."""
def __init__(self, input_stream)
Set up input stream, output queue and process to transfer between them.
def finalise(self)
Release thread resources on finalise.
def readline(self, timeout=None)
Return lines from queue.
def populate_queue(self, stream, queue)
Collect lines from stream and put them in queue.
std::string join(const std::vector< std::string > &v, const char c=',')
Read an output stream without blocking.
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)