Home | Trees | Indices | Help |
|
---|
|
A mailbox with an unbounded queue.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Class Variables | |
eof = EOF()
|
|
ignore = EOF()
|
Properties | |
Inherited from |
Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
Close the connection. It causes other threads to raise an exception, unless you give it self._ignore as an argument. Npx and ngx specify how many threads will commit suicide; zero means none; setting either to 1 is a useful way to kill a single thread. Legal values for for_put and for_get are any exception, anything returned from sys.exc_info, self.ignore and None.
|
Put a value into the mailbox. If one of the close() functions has been used to set an exception on for_put, it will raise the exception instead. |
Close the connection. This is normally called by the producer of data in place of put(). It can cause other threads to raise an exception. It does not fill the mailbox. Following this call,
It will raise an exception (unless defer_ex is True) if some other thread has closed first and set a for_put exception. However, it will set a for_get exception (if requested) before expiring. |
Raise any residual exceptions. This is normally called by the producer of data |
Get an object from the mailbox. This will normally block if the mailbox is empty. Notes:
|
Get an object from the mailbox and close the mailbox. This is normally called by the consumer of data in place of get(). It causes other threads to raise an exception. Note: It will raise an exception if some other thread has closed the mailbox first. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Aug 31 13:26:06 2011 | http://epydoc.sourceforge.net |