Mercurial > hg > orthanc-stone
comparison Applications/Generic/NativeStoneApplicationContext.cpp @ 377:8eb4fe74000f
refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 05 Nov 2018 16:18:27 +0100 |
parents | 87376a645ee1 |
children | 6cc3ce74dc05 |
comparison
equal
deleted
inserted
replaced
376:70256a53ff21 | 377:8eb4fe74000f |
---|---|
54 } | 54 } |
55 | 55 |
56 | 56 |
57 void NativeStoneApplicationContext::Start() | 57 void NativeStoneApplicationContext::Start() |
58 { | 58 { |
59 dynamic_cast<OracleWebService*>(webService_)->Start(); | |
60 | |
61 if (centralViewport_->HasUpdateContent()) | 59 if (centralViewport_->HasUpdateContent()) |
62 { | 60 { |
63 stopped_ = false; | 61 stopped_ = false; |
64 updateThread_ = boost::thread(UpdateThread, this); | 62 updateThread_ = boost::thread(UpdateThread, this); |
65 } | 63 } |
72 | 70 |
73 if (updateThread_.joinable()) | 71 if (updateThread_.joinable()) |
74 { | 72 { |
75 updateThread_.join(); | 73 updateThread_.join(); |
76 } | 74 } |
77 | |
78 dynamic_cast<OracleWebService*>(webService_)->Stop(); | |
79 } | 75 } |
80 } | 76 } |