Re: python-hackers-list Digest, Vol 21, Issue 2
- From: Matthias Vogelgesang <matthias vogelgesang gmail com>
- To: python-hackers-list gnome org
- Subject: Re: python-hackers-list Digest, Vol 21, Issue 2
- Date: Tue, 17 Jan 2012 11:11:36 +0100
Hi,
2012/1/13 Timo <timovwb gmail com>:
> Op 12-01-12 19:39, Richard Procter schreef:
>
>> This is just a guess but check that gobject.init_threads() has been
>> called.
>
> Small correction, it should be gobject.threads_init()
I tried this with but used the gi.repository import, so I called
GObject.threads_init() right after main. However, execution still gets
stuck.
>> IIRC, without it gobject doesn't actually release and re-aquire the GIL
>> when
>> executing outside of the python interpreter. It had me puzzled for quite a
>> while.
But I wonder if gobject actually releases the GIL when I call
g_thread_join(). If I join the thread, execution is blocked, if not
the execution segfaults. But, thanks for your help so far, I will see
what I can do.
Regards,
Matthias
--
Matthias Vogelgesang
Public-Key: http://tinyurl.com/2qcydl
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]