Package PyFoam :: Package ThirdParty :: Package Gnuplot :: Module PlotItems :: Class _FIFOWriter
[hide private]
[frames] | no frames]

Class _FIFOWriter

source code

        object --+        
                 |        
threading._Verbose --+    
                     |    
      threading.Thread --+
                         |
                        _FIFOWriter

Create a FIFO (named pipe), write to it, then delete it.

The writing takes place in a separate thread so that the main thread is not blocked. The idea is that once the writing is finished we know that gnuplot is done with the data that were in the file so we can delete the file. This technique removes the ambiguity about when the temporary files should be deleted.

Instance Methods [hide private]
  __init__(self, content, mode='w')
  run(self)

Inherited from threading.Thread: __repr__, getName, isAlive, isDaemon, join, setDaemon, setName, start

Inherited from threading.Thread (private): _set_daemon

Inherited from threading._Verbose (private): _note

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__


Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

__init__(self, content, mode='w')
(Constructor)

source code 
None
Overrides: threading.Thread.__init__

run(self)

source code 
None
Overrides: threading.Thread.run