i don't really know why you get that double-rate figure, maybe it's because of the erm... somewhat flawed real-timing logic?
maybe you could rearrange it to the snipped below, which is likely one notch more correct to have on a real-time thread ?
// Trigger update process if (pthread_mutex_trylock(&updateThreadMutex) == 0) { // Signal update thread pthread_cond_signal(&updateThreadCv); pthread_mutex_unlock(&updateThreadMutex); }
hth.
cheers
Copyright (C) 2006-2024 rncbc aka Rui Nuno Capela. All rights reserved.
Powered by Drupal
Recent comments
2 days 5 hours ago
2 days 7 hours ago
2 days 19 hours ago
3 days 4 hours ago
3 days 7 hours ago
2 weeks 2 hours ago
2 weeks 2 hours ago
2 weeks 3 days ago
3 weeks 2 days ago
3 weeks 2 days ago