From 008e038805cb8741db7c493ebffdf40e72f4597b Mon Sep 17 00:00:00 2001 From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Wed, 18 May 2022 22:32:52 +0100 Subject: [PATCH] Shorten the timeout on the SMI to 10 ms. --- ptp-utilities.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;