GNOME Bugzilla – Bug 762234
Port thumbnails creation from pthread to Gtask
Last modified: 2016-03-17 12:36:08 UTC
So we will have better threading support.https://bugzilla.gnome.org/show_bug.cgi?id=762137
Created attachment 321635 [details] [review] thumbnails: replace pthread API with GTask and GThread In Nautilus, thumbnail creation is handled on a separate thread. This thread is created and managed using the POSIX threads API. For better threading support, GTask and GThread should be used instead. Replace the pthread with a GTask. Replace pthread_mutex with GMutex.
Also, isn't this a duplicate of https://bugzilla.gnome.org/show_bug.cgi?id=760468?
Review of attachment 321635 [details] [review]: /me dancing Looks mostly good, thanks! ::: libnautilus-private/nautilus-thumbnails.c @@ +452,3 @@ + gpointer source_object, + gpointer task_data, + GCancellable *cancellable) wrong ident
*** Bug 760468 has been marked as a duplicate of this bug. ***
Created attachment 322444 [details] [review] thumbnails: replace pthread API with GTask and GThread In Nautilus, thumbnail creation is handled on a separate thread. This thread is created and managed using the POSIX threads API. For better threading support, GTask and GThread should be used instead. Replace the pthread with a GTask. Replace pthread_mutex with GMutex.
Review of attachment 322444 [details] [review]: LGTM thanks!
Attachment 322444 [details] pushed as b2ee410 .