Asyncron PDB->PDB calls ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Is there a possibility for a PlugIn
to run other PlugIns asyncron?

2 of my Plugins (the GAP Video/Navigator and
the Animated Preview in GAP Video/Move Path)
are currently calling the PlugIn animationplay
 
 return_vals =
 gimp_run_procedure ("plug_in_animationplay",
                    &nreturn_vals,
                    GIMP_PDB_INT32,    GIMP_RUN_NONINTERACTIVE,
                    GIMP_PDB_IMAGE,    l_new_image_id,
		    GIMP_PDB_DRAWABLE, -1,  /* dummy */
                    GIMP_PDB_END);
   "plug_in_animationplay"

This blocks the GUI Dialog Windows,
until the animation play is closed
(by the user).
In that case It would make sense
to run the plug_in_animationplay
without waiting until finished.

If there is no way to do asyncron calls now
we should think about to add them,
for example with the names:

  gimp_run_async_procedure
  gimp_run_async_procedure2

with the same parameters like the already
existing syncron versions.
But SUCCESS is returned immediate
after the requested plugin could be started.
gimp_run_async_procedure* does not
wait until the requested plugin has finished.


Note:
 I once tried to do a workaround
 by forking a playback process
 to call the plug_in_animationplay
 but this does not work !
 (when the animationplay terminates,
 the calling Plugin dies, 
 maybe when trying to call
 any gimp core function, while
 gimp thinks the plugin has already
 terminated)


Yours Wolfgang Hofer, <wolfgang.hofer@xxxxxxxxx>
(Author of GAP)



Get FREE Email/Voicemail with 15MB at Lycos Communications at http://comm.lycos.com


[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux