Message80904
Ah, but I think you missed the main point of the new patch.
There is a counter incremented and decremented. So, the State is set
only when the first thread enters a guarded section, and then restored
when the final thread leaves the section. There is no per-thread
storage of the previous state anymore, only static variables storing
the "unmodified state" to restore to when the last thread leaves a
guarded section. As long as some thread is in a guarded section,
assertions and stuff is turned off, otherwise, we keep the old ones.
This is similar in some ways to the special version of
Py_BEGIN_ALLOW_THREADS (FILE_BEGIN_ALLOW_THREADS, was it?) used in
fileio.c. |
|
Date |
User |
Action |
Args |
2009-02-01 09:52:24 | kristjan.jonsson | set | recipients:
+ kristjan.jonsson, loewis, mhammond, amaury.forgeotdarc |
2009-02-01 09:52:23 | kristjan.jonsson | set | messageid: <1233481943.83.0.187632101441.issue4804@psf.upfronthosting.co.za> |
2009-02-01 09:51:23 | kristjan.jonsson | link | issue4804 messages |
2009-02-01 09:51:21 | kristjan.jonsson | create | |
|