Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
continuous return?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Gabriel Genellina  
View profile  
 More options Nov 4, 2:31 pm
Newsgroups: comp.lang.python
From: "Gabriel Genellina" <gagsl-...@yahoo.com.ar>
Date: Wed, 04 Nov 2009 00:31:34 -0300
Local: Wed, Nov 4 2009 2:31 pm
Subject: Re: continuous return?
En Wed, 04 Nov 2009 00:20:05 -0300, Someone Something  
<fordhai...@gmail.com> escribió:

> I'm trying to write something related to IRC. The thing is, I have one
> thread receiving and another sending. But, how can I keep the caller of  
> the
> recv() function informed about what was last received so that it can all  
> be
> printed out. But, I no idea how I can accomplish this. I was thinking  
> about
> getting one variable that was constantly updated with the latest line  
> that
> was recved and that the variable would be  a member of the class so other
> functions/classes can access it

I don't completely understand your scenario, but since you say you have  
several threads, a common way to communicate between them is to use a  
Queue object. Let the receiver thread put() lines into the queue, and the  
processing thread get() them and do some work.

--
Gabriel Genellina


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google