GNOME Bugzilla – Bug 739831
Add nonglobal plugin loader support
Last modified: 2014-11-20 07:06:46 UTC
Allow multiple threads to each have a PeasEngine and be used without internal locking. Also allow using lua5.1 plugins from multiple threads.
Created attachment 290241 [details] [review] Add nonglobal plugin loader support This also modifies the current multiple-thread extension test to run with both global and nonglobal plugin loaders. Should be a decent stress test that everything is works properly.
Created attachment 290812 [details] [review] Add nonglobal plugin loader support v2 Replaced peas_engine_use_nonglobal_loaders() with peas_engine_new_with_nonglobal_loaders() and construct-only property.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Review of attachment 290812 [details] [review]: I just overlooked it and yes after this change I think it is fine the patch. Thanks
Review of attachment 290812 [details] [review]: See comments. ::: libpeas/peas-engine.c @@ +565,3 @@ + * If non-global plugin loaders should be used. + * + * See peas_engine_new_with_nonglobal_loaders() for more information. one issue though here, don't you have to put the since? @@ +1431,3 @@ + * plugin loaders are always global. + * + * Returns: a new instance of #PeasEngine that uses nonglobal loaders. missing Since?
Yes they do, fixed! Thanks!