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
21 hours 14 min ago
2 days 12 hours ago
2 days 13 hours ago
2 days 14 hours ago
3 days 12 hours ago
5 days 1 hour ago
5 days 2 hours ago
5 days 6 hours ago
5 days 8 hours ago
5 days 15 hours ago