]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Shorten the timeout on the SMI to 10 ms.
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Wed, 18 May 2022 21:32:52 +0000 (22:32 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Wed, 18 May 2022 21:32:52 +0000 (22:32 +0100)
ptp-utilities.c

index 70b26cb0791ee3ba476f58bbedbb61eb6ea479a0..c7d88aa7bcb52ca9a9cada3c6a8f807255a3d741 100644 (file)
@@ -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;