aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Erckenbrecht <dg1yfe@stus-disco.de>2020-07-31 09:03:46 +0200
committerFelix Erckenbrecht <dg1yfe@stus-disco.de>2020-07-31 09:03:46 +0200
commitb5708eb5ebbdaf2d80bc1f499ee9ae5f4ec5d7a2 (patch)
treeb967c7b5603ae786ff06620e45951fc18a555806
parent7d556168e7e9318a88c73ccd9e6797a8256fad5a (diff)
downloadosmo-fl2k-b5708eb5ebbdaf2d80bc1f499ee9ae5f4ec5d7a2.tar.gz
osmo-fl2k-b5708eb5ebbdaf2d80bc1f499ee9ae5f4ec5d7a2.tar.bz2
osmo-fl2k-b5708eb5ebbdaf2d80bc1f499ee9ae5f4ec5d7a2.zip
Refactor rename mutex
-rw-r--r--src/fl2k_iq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fl2k_iq.c b/src/fl2k_iq.c
index b6c028e..7a604be 100644
--- a/src/fl2k_iq.c
+++ b/src/fl2k_iq.c
@@ -62,7 +62,7 @@ int do_exit = 0;
pthread_t iq_thread;
pthread_mutex_t cb_mutex;
-pthread_mutex_t am_mutex;
+pthread_mutex_t iq_mutex;
pthread_cond_t cb_cond;
pthread_cond_t iq_cond;
@@ -334,7 +334,7 @@ void iq_modulator()
writepos %= BUFFER_SAMPLES;
}
} else {
- pthread_cond_wait(&iq_cond, &am_mutex);
+ pthread_cond_wait(&iq_cond, &iq_mutex);
}
}
}
@@ -446,7 +446,7 @@ int main(int argc, char **argv)
fprintf(stderr, "Center frequency:\t%5.0f kHz\n", (double)base_freq/1000);
pthread_mutex_init(&cb_mutex, NULL);
- pthread_mutex_init(&am_mutex, NULL);
+ pthread_mutex_init(&iq_mutex, NULL);
pthread_cond_init(&cb_cond, NULL);
pthread_cond_init(&iq_cond, NULL);
pthread_attr_init(&attr);