[threads] Make mono_thread_info_set_name () work on Mac in some cases.
commit323198ab5278a765e8b4289a1fa2e04e053da78c
authorAlex Rønne Petersen <alexrp@xamarin.com>
Tue, 5 Apr 2016 04:31:14 +0000 (5 06:31 +0200)
committerAlex Rønne Petersen <alexrp@xamarin.com>
Wed, 6 Apr 2016 00:28:49 +0000 (6 02:28 +0200)
tree62c30b2188a13b3ee2212ae8a1a385581f5ec93c
parent6b75d57c7da7540b4902d8c20b4b66260107f5e6
[threads] Make mono_thread_info_set_name () work on Mac in some cases.

We can use pthread_setname_np () on OS X 10.6+ when we're setting the name for
the current thread. For other cases, we just do nothing.
mono/utils/mono-threads-posix.c