krähemann.com

Launching tasks

It's for thread-safety for sure to run tasks asynchronously exclusive. This means what ever you do it's safe exceptional in view of third-party libraries that might have their own threads. To do your own task you should inherit AgsTask base object and implement ::launch. This signal is invoked after syncing the thread tree.

You can use either ags_task_launcher_add_task() or ags_task_launcher_add_task_all() to add one respectively a GList of tasks. The task shall report failures by calling ::failure signal.