From 6edaa585958d38c27f8ea6a6c84c5933116881db Mon Sep 17 00:00:00 2001 From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Sun, 6 Jun 2021 15:49:03 +0100 Subject: [PATCH] increase the wait time for the shm access mutex. --- ptp-utilities.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ptp-utilities.c b/ptp-utilities.c index 12a0890c..9890028d 100644 --- a/ptp-utilities.c +++ b/ptp-utilities.c @@ -63,7 +63,7 @@ int get_nqptp_data(struct shm_structure *nqptp_data) { int ptp_get_clock_info(uint64_t *actual_clock_id, uint64_t *raw_offset, uint64_t *mastership_start_time) { int response = clock_ok; - pthread_cleanup_debug_mutex_lock(&ptp_access_mutex, 10000, 1); + pthread_cleanup_debug_mutex_lock(&ptp_access_mutex, 20000, 1); if (actual_clock_id != NULL) *actual_clock_id = 0; if (raw_offset != NULL)