Updated Concurrent example, forcing a call to smoother.update() between
each synchronizationrelease/4.3a0
parent
a04c100f00
commit
93149ae5f2
|
@ -132,6 +132,7 @@ int main(int argc, char** argv) {
|
||||||
// Manually synchronize the Concurrent Filter and Smoother every 1.0 s
|
// Manually synchronize the Concurrent Filter and Smoother every 1.0 s
|
||||||
if(fmod(time, 1.0) < 0.01) {
|
if(fmod(time, 1.0) < 0.01) {
|
||||||
// Synchronize the Filter and Smoother
|
// Synchronize the Filter and Smoother
|
||||||
|
concurrentSmoother.update();
|
||||||
synchronize(concurrentFilter, concurrentSmoother);
|
synchronize(concurrentFilter, concurrentSmoother);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -210,6 +211,7 @@ int main(int argc, char** argv) {
|
||||||
// Manually synchronize the Concurrent Filter and Smoother every 1.0 s
|
// Manually synchronize the Concurrent Filter and Smoother every 1.0 s
|
||||||
if(fmod(time, 1.0) < 0.01) {
|
if(fmod(time, 1.0) < 0.01) {
|
||||||
// Synchronize the Filter and Smoother
|
// Synchronize the Filter and Smoother
|
||||||
|
concurrentSmoother.update();
|
||||||
synchronize(concurrentFilter, concurrentSmoother);
|
synchronize(concurrentFilter, concurrentSmoother);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -282,6 +284,7 @@ int main(int argc, char** argv) {
|
||||||
// Manually synchronize the Concurrent Filter and Smoother every 1.0 s
|
// Manually synchronize the Concurrent Filter and Smoother every 1.0 s
|
||||||
if(fmod(time, 1.0) < 0.01) {
|
if(fmod(time, 1.0) < 0.01) {
|
||||||
// Synchronize the Filter and Smoother
|
// Synchronize the Filter and Smoother
|
||||||
|
concurrentSmoother.update();
|
||||||
synchronize(concurrentFilter, concurrentSmoother);
|
synchronize(concurrentFilter, concurrentSmoother);
|
||||||
cout << "******************************************************************" << endl;
|
cout << "******************************************************************" << endl;
|
||||||
cout << "Syncing Concurrent Filter and Smoother." << endl;
|
cout << "Syncing Concurrent Filter and Smoother." << endl;
|
||||||
|
|
Loading…
Reference in New Issue