From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Wed, 18 May 2022 21:32:52 +0000 (+0100) Subject: Shorten the timeout on the SMI to 10 ms. X-Git-Tag: 4.1-rc1~24^2~212 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=008e038805cb8741db7c493ebffdf40e72f4597b;p=thirdparty%2Fshairport-sync.git Shorten the timeout on the SMI to 10 ms. --- diff --git a/ptp-utilities.c b/ptp-utilities.c index 70b26cb0..c7d88aa7 100644 --- a/ptp-utilities.c +++ b/ptp-utilities.c @@ -56,7 +56,7 @@ int get_nqptp_data(struct shm_structure *nqptp_data) { // exclusive access while copying if ((mapped_addr != MAP_FAILED) && (mapped_addr != NULL)) { - pthread_cleanup_debug_mutex_lock((pthread_mutex_t *)mapped_addr, 100000, 1); + pthread_cleanup_debug_mutex_lock((pthread_mutex_t *)mapped_addr, 10000, 1); memcpy(nqptp_data, (char *)mapped_addr, sizeof(struct shm_structure)); pthread_cleanup_pop(1); // release the mutex response = 0;