extension call backs and the GIL
Robin Becker
robin at jessikat.fsnet.co.uk
Mon Sep 29 10:05:33 EDT 2003
More information about the Python-list mailing list
Mon Sep 29 10:05:33 EDT 2003
- Previous message (by thread): extension call backs and the GIL
- Next message (by thread): VB6 thin client
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In article <6q4qyvep55.fsf at salmakis.intevation.de>, Bernhard Herzog <bh at intevation.de> writes >Robin Becker <robin at jessikat.fsnet.co.uk> writes: > >>>You need to reacquire the GIL prior to making the callback. >> So does calling an extension release the GIL? > >No. It would be very inconvenient if it did because what most functions >do first is to call one of the PyArg_ParseTuple functions which could >execute arbitrary python code. Thank goodness for that :) > >I think it would help if you described a bit more what the actual >problem is or what the user does. > >I looked briefly at the sources and assuming tha the accelerator in >question is lib/_rl_accel.c and the callback whatever has been assigned >to _SWRecover, could it be that the problem is that your user tries to >use different callbacks in different threads? _SWRecover is a global >after all and shared by all threads. I'm not certain, but yes I think that's probably what the problem comes down to; if so I can claim there are already too many breakages in our font system to worry about that :( > > Bernhard > -- Robin Becker
- Previous message (by thread): extension call backs and the GIL
- Next message (by thread): VB6 thin client
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list