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.

classification
Title: Proper locking with asynchronous callbacks.
Type: Stage:
Components: Interpreter Core Versions: Python 2.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: amaury.forgeotdarc, tuijldert
Priority: normal Keywords: patch

Created on 2006-01-23 09:16 by tuijldert, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
ceval.c.diff tuijldert, 2006-01-23 09:16 Unified diff of Python/ceval.c against nightly tarball version of 20 -jan-2006
Messages (2)
msg49395 - (view) Author: uiltje (tuijldert) Date: 2006-01-23 09:16
Handling of Py_AddPendingCall()/Py_MakePendingCalls()
in ceval.c cannot handle registry calls that are made
while processing pending calls.

Current solution doesn't work, the "busy" variable
should be shared between the two functions for it to work.

This patch should work but is still not atomic, that'd
need proper locking.
Hence the alternative code in the patch when
threading/semaphores are present.

Please review and apply the attached patch.

Thanks in advance,
     Tom.
msg83316 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) Date: 2009-03-08 17:02
A (better IMO) fix was applied with r68460.
History
Date User Action Args
2022-04-11 14:56:15adminsetgithub: 42824
2009-03-08 17:02:55amaury.forgeotdarcsetstatus: open -> closed

nosy: + amaury.forgeotdarc
messages: + msg83316

resolution: fixed
2006-01-23 09:16:29tuijldertcreate