Updated Concurrent example, forcing a call to smoother.update() between

each synchronization
release/4.3a0
Stephen Williams 2013-05-09 18:59:20 +00:00
parent a04c100f00
commit 93149ae5f2
1 changed files with 3 additions and 0 deletions

View File

@ -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;