[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using glib's g_file_monitor_file and g_file_monitor_directory
From: |
Michael Albinus |
Subject: |
Re: Using glib's g_file_monitor_file and g_file_monitor_directory |
Date: |
Thu, 06 Jun 2013 13:06:33 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Jan Djärv <address@hidden> writes:
> Hello.
Hi,
>> I've committed a patch to the trunk which prevents this crash. However,
>> if you call "emacs -nw", you won't get any notification. I suppose we
>> need an generalized g_main_loop integration, synchronized with the code
>> in gtkutil.c.
>>
>> Likely, we must move this code out of gtkutil.c and gfilenotify.c. Jan?
>
>
> Which code? The glib event loop integration is in xgselect.c. I
> think it is called in the -nw case also. It is only dependent on
> HAVE_GLIB.
> The Gtk+ event loop integration is in xterm.c, it is a separate thing.
I was thinking about the g_main_loop_run and g_main_loop_quit calls in
gtkutil.c. Reading the code in more detail, it looks like the calls have
a local scope only, so we don't need to sync.
gfilenotify.c needs a running glib event loop. If Emacs is called with
the "-nw" flag there is no such event loop; it must be started in a new
thread by gfilenotify.c I believe.
> Jan D.
Best regards, Michael.
- Re: Using glib's g_file_monitor_file and g_file_monitor_directory, (continued)
- Re: Using glib's g_file_monitor_file and g_file_monitor_directory, Glenn Morris, 2013/06/03
- Re: Using glib's g_file_monitor_file and g_file_monitor_directory, Michael Albinus, 2013/06/03
- Re: Using glib's g_file_monitor_file and g_file_monitor_directory, Paul Eggert, 2013/06/04
- Re: Using glib's g_file_monitor_file and g_file_monitor_directory, Eli Zaretskii, 2013/06/04
- Re: Using glib's g_file_monitor_file and g_file_monitor_directory, Paul Eggert, 2013/06/04
- Re: Using glib's g_file_monitor_file and g_file_monitor_directory, Stefan Monnier, 2013/06/04
- Re: Using glib's g_file_monitor_file and g_file_monitor_directory, Paul Eggert, 2013/06/06
- Re: Using glib's g_file_monitor_file and g_file_monitor_directory, Paul Eggert, 2013/06/04
- Re: Using glib's g_file_monitor_file and g_file_monitor_directory, Michael Albinus, 2013/06/05
- Re: Using glib's g_file_monitor_file and g_file_monitor_directory, Jan Djärv, 2013/06/05
- Re: Using glib's g_file_monitor_file and g_file_monitor_directory,
Michael Albinus <=
- Re: Using glib's g_file_monitor_file and g_file_monitor_directory, Jan Djärv, 2013/06/07
- Re: Using glib's g_file_monitor_file and g_file_monitor_directory, Michael Albinus, 2013/06/07
- Re: Using glib's g_file_monitor_file and g_file_monitor_directory, Jan Djärv, 2013/06/07
- Re: Using glib's g_file_monitor_file and g_file_monitor_directory, Michael Albinus, 2013/06/07
- Re: Using glib's g_file_monitor_file and g_file_monitor_directory, Jan Djärv, 2013/06/08
- Re: Using glib's g_file_monitor_file and g_file_monitor_directory, Michael Albinus, 2013/06/03