re-entrancy question

Discussion in 'Python' started by apocalypznow, Feb 8, 2005.

  1. apocalypznow

    apocalypznow Guest

    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?
    apocalypznow, Feb 8, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. sean
    Replies:
    1
    Views:
    590
    Cowboy \(Gregory A. Beamer\)
    Oct 20, 2003
  2. =?Utf-8?B?UnlhbiBTbWl0aA==?=

    Quick Question - Newby Question

    =?Utf-8?B?UnlhbiBTbWl0aA==?=, Feb 14, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    646
    Iain Norman
    Feb 16, 2005
  3. Tim Golden

    RE: re-entrancy question

    Tim Golden, Feb 8, 2005, in forum: Python
    Replies:
    1
    Views:
    321
    Valentino Volonghi aka Dialtone
    Feb 8, 2005
  4. George2

    re-entrancy pattern issue setbacks

    George2, Apr 12, 2008, in forum: C Programming
    Replies:
    0
    Views:
    363
    George2
    Apr 12, 2008
  5. Lauri Alanko

    Macro re-entrancy problem

    Lauri Alanko, Feb 4, 2011, in forum: C Programming
    Replies:
    1
    Views:
    328
    Ben Bacarisse
    Feb 4, 2011
Loading...

Share This Page