[apocalypznow] | I have a program that instantiates some objects and runs a main loop. | Before the main loop starts, I create a thread that listens to TCP | connections on a port. If any connections are made, and depending on | the data, I call methods on some of those objects. | | I am worried that calling methods on objects from outside the | main loop, | but that are also operated on in the main loop, could cause problems. | | My questions: | 1) is this safe? | 2) what kind of problems could occur? | 3) how do I safely handle this?
No doubt there are more pertinent answers, but unless this is a learning exercise, you'd be better off investigating Pyro: http://pyro.sf.net TJG (And, thinking about it, even if this is a learning exercise) ________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________ -- http://mail.python.org/mailman/listinfo/python-list