Re: [Gimp-developer] Simultaneous Multiprocessing and Multithreading in GIMP

2019-10-29 Thread Ahmad Nouralizadeh via gimp-developer-list
Hi Liam,
Thanks for the answer.

On Sat, 26 Oct 2019 at 16:25, Liam R E Quin  wrote:

> On Sat, 2019-10-26 at 15:30 +0330, Ahmad Nouralizadeh via gimp-
> developer-list wrote:
> >  AFAIK, using fork
> > and multithreading is not recommended (e.g., look at the second
> > answer here, Is it safe to fork from within a thread?
>
> It's “not recommended” in the same way that using a knife to cut your
> meat is not recommended: you could hurt yourself.
>
> As you can see from that stackoverflow question, there can be problems
> if you don't call exec() right away in the child process after a
> fork(). Which GIMP does, avoiding the problems.
>
> This is why GIMP does not deadlock when you run a plugin.
>
> slave liam (ankh)
>
>
> --
> Liam Quin - web slave for https://www.fromoldbooks.org/
> with fabulous vintage art and fascinating texts to read.
> Click here to have the slave beaten.
>
>
___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list


[Gimp-developer] Image Contents Location in GIMP

2019-10-29 Thread Ahmad Nouralizadeh via gimp-developer-list
Hi,
AFAIK, gimp has a lot of plugins, one of which loads the image to be
processed. For example, for jpeg images, we have file-jpeg (in
plug-ins/file-jpeg/jpeg-load.c). After the image is loaded, the process for
this plugin exits. The image seems to be loaded in the main gimp process.
Therefore, a means of IPC is needed.
What I want to know is, exactly where in the source code, this
communication takes place. It seems that gimp uses both pipes and shared
memories and the files contents are shared using the latter. I mean the
whole image might be loaded in a shared memory segment. Am I right?
Any help is appreciated and many thanks for all the assistance that I
received through this helpful mailing list.
Regards.
___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list