Author pitrou
Recipients pitrou, tamino
Date 2008-08-28.00:37:59
SpamBayes Score 0.004528
Marked as misclassified No
Message-id <>
> But then if there is a context switch during the last Py_XDECREF, then
> it could be the case that self->dict is not set properly on return from
> _ldict().

Well, C code is effectively locked in a single thread until the GIL is
released. It means that a piece of C code which doesn't release the GIL
behaves as a critical section. So the only thing to consider, IMO, is
whether the GIL can still be released between "if (ldict == NULL)" and
"self->dict = ldict".
Date User Action Args
2008-08-28 00:38:01pitrousetrecipients: + pitrou, tamino
2008-08-28 00:38:01pitrousetmessageid: <>
2008-08-28 00:37:59pitroulinkissue3710 messages
2008-08-28 00:37:59pitroucreate