Author pitrou
Recipients ebfe, gps, pitrou, vstinner
Date 2009-01-01.00:04:29
SpamBayes Score 0.0102357
Marked as misclassified No
Message-id <1230768270.34.0.483951676866.issue4751@psf.upfronthosting.co.za>
In-reply-to
Content
Actually, your code can deadlock since ENTER_HASHLIB doesn't release the
GIL. Think about it:

// Thread A is here, holding the GIL and waiting for self->lock to be 
// released by thread B
ENTER_HASHLIB(self)
Py_BEGIN_ALLOW_THREADS
// Thread B is here, holding self->lock and waiting for the GIL to be
// released by thread A
Py_END_ALLOW_THREADS
LEAVE_HASHLIB(self)
History
Date User Action Args
2009-01-01 18:59:21vstinnerunlinkissue4751 messages
2009-01-01 00:04:31pitrousetrecipients: + pitrou, vstinner, gps, ebfe
2009-01-01 00:04:30pitrousetmessageid: <1230768270.34.0.483951676866.issue4751@psf.upfronthosting.co.za>
2009-01-01 00:04:29pitroulinkissue4751 messages
2009-01-01 00:04:29pitroucreate