comparison Applications/Generic/NativeStoneApplicationContext.cpp @ 386:e33659decec5

renamed UpdateContent() as DoAnimation()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 09 Nov 2018 17:06:28 +0100
parents 6cc3ce74dc05
children c23df8b3433b
comparison
equal deleted inserted replaced
385:6cc3ce74dc05 386:e33659decec5
35 { 35 {
36 while (!that->stopped_) 36 while (!that->stopped_)
37 { 37 {
38 { 38 {
39 GlobalMutexLocker locker(*that); 39 GlobalMutexLocker locker(*that);
40 locker.GetCentralViewport().UpdateContent(); 40 locker.GetCentralViewport().DoAnimation();
41 } 41 }
42 42
43 boost::this_thread::sleep(boost::posix_time::milliseconds(that->updateDelayInMs_)); 43 boost::this_thread::sleep(boost::posix_time::milliseconds(that->updateDelayInMs_));
44 } 44 }
45 } 45 }
58 void NativeStoneApplicationContext::Start() 58 void NativeStoneApplicationContext::Start()
59 { 59 {
60 boost::mutex::scoped_lock lock(globalMutex_); 60 boost::mutex::scoped_lock lock(globalMutex_);
61 61
62 if (stopped_ && 62 if (stopped_ &&
63 centralViewport_.HasUpdateContent()) 63 centralViewport_.HasAnimation())
64 { 64 {
65 stopped_ = false; 65 stopped_ = false;
66 updateThread_ = boost::thread(UpdateThread, this); 66 updateThread_ = boost::thread(UpdateThread, this);
67 } 67 }
68 } 68 }