| Home | Trees | Index | Help |
|
|---|
| Package twisted :: Package python :: Module threadable |
|
| Classes | |
|---|---|
_ThreadedWaiter |
|
_Waiter |
|
_XLock |
Exclusive lock class. |
Waiter |
|
XLock |
Exclusive lock class. |
| Exceptions | |
|---|---|
ThreadableError |
|
| Function Summary | |
|---|---|
_synchPost(self,
*a,
**b)
| |
_synchPre(self,
*a,
**b)
| |
Initialize threading. | |
Are we in the thread responsable for I/O requests (the event loop)? | |
Mark the current thread as responsable for I/O requests. | |
Make all methods listed in each class' synchronized attribute synchronized. | |
whenThreaded(cb)
| |
| Variable Summary | |
|---|---|
list |
_to_be_synched = []
|
NoneType |
ioThread = None |
list |
threadCallbacks = [<function initThreads at 0x81d40ac>, ...
|
int |
threaded = 1 |
| Function Details |
|---|
init(with_threads=1)Initialize threading. Should be run once, at the beginning of program. |
isInIOThread()Are we in the thread responsable for I/O requests (the event loop)? |
registerAsIOThread()Mark the current thread as responsable for I/O requests. |
synchronize(*klasses)Make all methods listed in each class' synchronized attribute synchronized. The synchronized attribute should be a list of strings, consisting of the names of methods that must be synchronized. If we are running in threaded mode these methods will be wrapped with a lock. |
| Variable Details |
|---|
_to_be_synched
|
ioThread
|
threaded
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.0 on Sat May 15 20:08:14 2004 | http://epydoc.sf.net |