Package grassyknoll :: Package concurrent :: Module MailBox :: Class ThreadMailBox
[hide private]

Class ThreadMailBox

source code


a MailBox for use with threads

Instance Methods [hide private]
 
__init__(self, name=None, qsize=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
send(self, mesg, timeout=None)
send message to this box
source code
 
recv(self, timeout=None)
receive a message from this box
source code
 
done(self) source code
 
close(self) source code
 
join(self) source code
 
__len__(self) source code

Inherited from MailBox: __repr__, recvNow, sendNow

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Instance Variables [hide private]
ClosingQueue.ClosingQueue queue
a queue of Message.Messages

Inherited from MailBox: name

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name=None, qsize=None)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: MailBox.__init__

send(self, mesg, timeout=None)

source code 
send message to this box
Overrides: MailBox.send
(inherited documentation)

recv(self, timeout=None)

source code 
receive a message from this box
Returns:
a message that was sent to this box
Overrides: MailBox.recv
(inherited documentation)

__len__(self)
(Length operator)

source code 
Overrides: MailBox.__len__