threading2 0.1.0
like the standard threading module, but awesomer
Latest Version: 0.2.1
threading2: like the standard threading module, but awesomer.
This module is designed as a drop-in replacement and extension for the default "threading" module. It has two main objectives:
- implement primitives using native platform functionality where possible
- expose more sophisticated functionality where it can be done uniformly
The following extensions are currently implemented:
- ability to set (advisory) thread priority
- ability to set (advisory) CPU affinity at thread and process level
- thread groups for simultaneous management of multiple threads
The following API niceties are also included:
- all blocking methods take a "timeout" argument and return a success code
- all exposed objects are actual classes and can be safely subclassed
This has currently only been tested on WinXP and Ubuntu Karmic; similar platforms should work OK, and other platforms should fall back to using sensible default behaviour, but I'm not making any guarantees at this stage.
Additional planned extensions include:
- native events, semaphores and timed waits on win32
- native conditions and timed waits on pthreads platforms
Stuff that might get included one day:
- ReadWriteLock (using SRW on Win Vista+, pthread_rwlock on posix)
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| threading2-0.1.0.tar.gz (md5) | Source | 2010-02-03 | 15KB | 258 | |
- Author: Ryan Kelly
- Home Page: http://github.com/rfk/threading2
- Keywords: thread threading
- License: MIT
- Package Index Owner: rfk
- DOAP record: threading2-0.1.0.xml
