Re: What's the difference between the UNIX signal and gtk signal?
- From: Paul Davis <pbd op net>
- To: Chen leonard-a17094 <liangchen motorola com>
- Cc: "Gtk-List Gnome Org (E-mail)" <gtk-list gnome org>
- Subject: Re: What's the difference between the UNIX signal and gtk signal?
- Date: Thu, 16 May 2002 23:10:58 -0400
>What's the difference between the traditional UNIX signal and gtk signal? I re
>ad from some articles that gtk signal is implemented at user level, not at ker
>nel level as UNIX signal does. As we know, UNIX signal can be used as a kind o
>f IPC method, so, can the gtk signal be used as IPC between two different gtk
> process?
no.
there is no relationship *whatsoever* between the two except the name.
the simplest way to think of the signal system in Gtk/glib is as an
easier-to-use callback registration system. when you connect to a
signal you are really saying:
"when FOO happens, call this function with these arguments"
where FOO are GdkEvents like a ButtonPress or an EnterNotify event.
i suppose that this is semantically similar to a POSIX signal:
"when SIGALRM happens, call this function"
but its a conceptual similarity only. they share no code, no
implementation concepts, nothing.
--p
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]