Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
tools.skpbench.skpbench.SubprocessMonitor Class Reference
Inheritance diagram for tools.skpbench.skpbench.SubprocessMonitor:

Public Member Functions

 __init__ (self, queue, proc)
 
 run (self)
 

Protected Attributes

 _queue
 
 _proc
 

Detailed Description

Definition at line 126 of file skpbench.py.

Constructor & Destructor Documentation

◆ __init__()

tools.skpbench.skpbench.SubprocessMonitor.__init__ (   self,
  queue,
  proc 
)

Definition at line 127 of file skpbench.py.

127 def __init__(self, queue, proc):
128 self._queue = queue
129 self._proc = proc
130 Thread.__init__(self)
131

Member Function Documentation

◆ run()

tools.skpbench.skpbench.SubprocessMonitor.run (   self)
Runs on the background thread.

Definition at line 132 of file skpbench.py.

132 def run(self):
133 """Runs on the background thread."""
134 for line in iter(self._proc.stdout.readline, b''):
135 self._queue.put(Message(Message.READLINE, line.decode('utf-8').rstrip()))
136 self._queue.put(Message(Message.EXIT))
137
Definition run.py:1

Member Data Documentation

◆ _proc

tools.skpbench.skpbench.SubprocessMonitor._proc
protected

Definition at line 129 of file skpbench.py.

◆ _queue

tools.skpbench.skpbench.SubprocessMonitor._queue
protected

Definition at line 128 of file skpbench.py.


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