GNOME Bugzilla – Bug 741807
Add thread name support on OS X and iOS
Last modified: 2015-01-26 09:07:35 UTC
Created attachment 293128 [details] [review] Patch against git c447bc7f93fbc6e1aaf7f46eef9da2f820c8f209 glib has thread name support on Linux only. Thread names greatly help debugging. pthread_setname_np(const char*) exists since OS X 10.6 and iOS 3.2. The signature differs slightly from BSD pthread_setname_np(pthread_t, const char*) but fits our use. An autoconf check should be designed to test for it. Further patches should address BSD and Win32.
Created attachment 293129 [details] [review] Patch against git c447bc7f93fbc6e1aaf7f46eef9da2f820c8f209
Review of attachment 293129 [details] [review]: Thanks for the patch and thanks for taking care to check the number of arguments accepted in configure.ac.
Ryan, pinging you since it's been a month. Is this patch going into master?
Created attachment 295424 [details] [review] gthread: add thread name support on Mac OS
Attachment 295424 [details] pushed as 2a0c180 - gthread: add thread name support on Mac OS Sorry for not pushing this. I assumed that you had commit access for yourself and was expecting you to push it. Thanks again.