summaryrefslogtreecommitdiffstats
path: root/libhb/ports.c
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2019-04-09 19:20:51 +0200
committerDamiano Galassi <[email protected]>2019-04-09 19:20:51 +0200
commitea5cfe4bd60bd33c64ac6ed51b25fe6187618829 (patch)
tree95a5768e87bab2c8d8a676893f87c859d5854749 /libhb/ports.c
parent5c1e6442015619e9d2ca53d8868007d3550d3cd4 (diff)
ports: set pthreads name on macOS.
Diffstat (limited to 'libhb/ports.c')
-rw-r--r--libhb/ports.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libhb/ports.c b/libhb/ports.c
index 226b7ba73..4a7a96fcf 100644
--- a/libhb/ports.c
+++ b/libhb/ports.c
@@ -862,6 +862,10 @@ static void attribute_align_thread hb_thread_func( void * _t )
pthread_setschedparam( pthread_self(), SCHED_OTHER, &param );
#endif
+#if defined( SYS_DARWIN )
+ pthread_setname_np( t->name );
+#endif
+
#if defined( SYS_BEOS )
signal( SIGINT, SIG_IGN );
#endif