Message78668
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) |
|
Date |
User |
Action |
Args |
2009-01-01 18:59:21 | vstinner | unlink | issue4751 messages |
2009-01-01 00:04:31 | pitrou | set | recipients:
+ pitrou, vstinner, gps, ebfe |
2009-01-01 00:04:30 | pitrou | set | messageid: <1230768270.34.0.483951676866.issue4751@psf.upfronthosting.co.za> |
2009-01-01 00:04:29 | pitrou | link | issue4751 messages |
2009-01-01 00:04:29 | pitrou | create | |
|