Changeset 64:8c428bde178d
- Timestamp:
- 07/14/07 09:16:42
(3 years ago)
- Author:
- Allan Saddi <allan@saddi.com>
- branch:
- default
- transplant_source:
- ����T�X��e\�����6�
- Message:
Prevent ThreadPool? inconsistences if an exception is actually raised.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r63 |
r64 |
|
| | 1 | 2007-07-14 Allan Saddi <allan@saddi.com> |
|---|
| | 2 | |
|---|
| | 3 | * Prevent ThreadPool inconsistences if an exception is |
|---|
| | 4 | actually raised. Thanks to Tim Chen for the patch. |
|---|
| | 5 | |
|---|
| 1 | 6 | 2007-05-17 Allan Saddi <allan@saddi.com> |
|---|
| 2 | 7 | |
|---|
| r6 |
r64 |
|
| 101 | 101 | self._lock.release() |
|---|
| 102 | 102 | |
|---|
| 103 | | job.run() |
|---|
| | 103 | try: |
|---|
| | 104 | job.run() |
|---|
| | 105 | except: |
|---|
| | 106 | # FIXME: This should really be reported somewhere. |
|---|
| | 107 | # But we can't simply report it to stderr because of fcgi |
|---|
| | 108 | pass |
|---|
| 104 | 109 | |
|---|
| 105 | 110 | self._lock.acquire() |
|---|