This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author William.Hart
Recipients William.Hart, vinay.sajip
Date 2011-03-14.06:30:20
SpamBayes Score 4.1588233e-08
Marked as misclassified No
Message-id <AANLkTinF3zOOW70nP_nbM1=ERdhE=9-RVdCTEzOnoL3_@mail.gmail.com>
In-reply-to <1299752195.83.0.686675152711.issue11369@psf.upfronthosting.co.za>
Content
Vinay:

No, I haven't tried this in multi-threaded applications.  You're correct
that this would require locks around the global data.

--Bill

On Thu, Mar 10, 2011 at 3:16 AM, Vinay Sajip <report@bugs.python.org> wrote:

>
> Vinay Sajip <vinay_sajip@yahoo.co.uk> added the comment:
>
> Bill,
>
> I was looking at this patch again, and I'm not sure about thread safety.
> The correctness of the caching depends on manager.status, which is state
> which is potentially shared across threads. There are no interlocks around
> it, so with the patch as it stands, ISTM it's possible in a multi-threaded
> application to get stale information. Has your patch been used in
> multi-threaded applications?
>
> ----------
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue11369>
> _______________________________________
>
Files
File name Uploaded
unnamed William.Hart, 2011-03-14.06:30:20
History
Date User Action Args
2011-03-14 06:30:20William.Hartsetrecipients: + William.Hart, vinay.sajip
2011-03-14 06:30:20William.Hartlinkissue11369 messages
2011-03-14 06:30:20William.Hartcreate