I have subclassed Process
like so:
class EdgeRenderer(Process):
def __init__(self,starter,*args,**kwargs):
Process.__init__(self,*args,**kwargs)
self.starter=starter
Then I define a run
method which uses self.starter
.
That starter
object is of a class State
that I define.
Is it okay that I do this? What happens to the object? Does it get serialized? Does that mean that I always have to ensure the State
object is serializable? Does the new process get a duplicate copy of this object?