This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFA: properly handle the GIL
>>>>> "Daniel" == Daniel Jacobowitz <drow@false.org> writes:
Daniel> This looks OK. Is this a recursive lock? That is, do we have to
Daniel> worry about GDB -> Python -> GDB -> Python taking the lock twice?
We don't have to worry. Python provides several APIs to the GIL; the
one that we use is reentrant. Sorry for not mentioning this before --
I forgot about it.
Also, I realized people may be wondering about thread safety in gdb.
For the time being I think we should just ignore this and require that
Python scripts be careful to run code in gdb's thread.
I'll commit this tomorrow.
Tom