Home | Trees | Indices | Help |
|
---|
|
This is a stripped down mailbox that is good for one message between one sender and one reciever. It is an error to call put() or get() or putclose() more than once.
The normal usage is that you create the mailbox, spawn a thread, and hand the mailbox to the new thread. Then, one side calls get on the mailbox to wait for an answer. The other side computes something, then calls put. The waitbox is then thrown away.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Properties | |
Inherited from |
Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
Close the connection. This is normally called by the producer of data in place of put(). It causes other threads to raise an exception. |
Get an object from the mailbox. This will normally block if the mailbox is empty. Notes:
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Aug 31 13:26:06 2011 | http://epydoc.sourceforge.net |