| Home | Trees | Index | Help |
|---|
| Package twisted :: Package python :: Module threadable |
|
| Exceptions | |
|---|---|
ThreadableError |
|
| Function Summary | |
|---|---|
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 | |
|---|---|
NoneType |
ioThread
|
list |
threadCallbacks
|
int |
threaded
|
| 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 |
|---|
ioThread
|
threadCallbacks
|
threaded
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 1.2 prerelease on Wed Jan 29 06:25:58 2003 | http://epydoc.sf.net |