Give all threads in Evolution and EDS a meaningful name
In rare occassions Evolution uses in a thread 100% of the CPU. On importing CVS data (exported from outlook.com) it does not make any visible progress for long time for just 50 contacts and then suddenly is ready.
When a name is passed to g_thread_new(), it calls pthread_setname_np(3) and then that name can be shown by htop.
- Put a name in all invocations of g_thread_new(), so that one can determine which thread is problematic and use gdb to attach to it, or at least see and report the name of the problematic thread.
This name shall be as useful as possible, but limited to 16 characters due Linux Kernel limitations. E.g. on synchronizing a specific account (caldav collection), the name shall indicate (in obfuscated way) the account type and collection address.