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
1 day 13 hours ago
20 hours 43 min ago
1 day 17 hours ago
1 day 18 hours ago
1 day 22 hours ago
2 days 3 hours ago
2 days 5 hours ago
2 days 6 hours ago
1 week 3 days ago
1 week 3 days ago