Package NetworkRender :: Module RenderThread :: Class RenderThread
[hide private]
[frames] | no frames]

Class RenderThread

source code

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

Instance Methods [hide private]
 
__init__(self, uri, scenename, context, fqueue, squeue)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
run(self)
Run as long as there is work available in the workqueue.
source code

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, uri, scenename, context, fqueue, squeue)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • uri (string) - uri of remote render server OR 'localhost'
  • scenename (string) - name of current scene
  • context (Scene.Renderdata) - current rendering context
  • fqueue (Queue.queue) - worklist
  • squeue (Queue.queue) - rendering statistics
Overrides: object.__init__

run(self)

source code 

Run as long as there is work available in the workqueue.

If an exception is caught while rendering, the workitem is put back on the worklist and a statistic is recorded as a failed render.

Overrides: threading.Thread.run

Warning: Note that this might end up as an endless loop if a remote server continues to fail and the localhost thread is never fast enough to snatch the workitem from the queue. This needs some work!