comparison Applications/Sdl/BasicSdlApplication.cpp @ 251:192e6e349e69 am-2

first usage of new message system (in SDL only)
author am@osimis.io
date Mon, 02 Jul 2018 18:13:46 +0200
parents 50fb32abf85e
children c887eddd48f1
comparison
equal deleted inserted replaced
250:5e642859267e 251:192e6e349e69
78 78
79 options.add(sdl); 79 options.add(sdl);
80 } 80 }
81 81
82 82
83 int BasicSdlApplication::ExecuteWithSdl(IBasicApplication& application, 83 int BasicSdlApplication::ExecuteWithSdl(MessageBroker& broker,
84 IBasicApplication& application,
84 int argc, 85 int argc,
85 char* argv[]) 86 char* argv[])
86 { 87 {
87 /****************************************************************** 88 /******************************************************************
88 * Initialize all the subcomponents of Orthanc Stone 89 * Initialize all the subcomponents of Orthanc Stone
222 223
223 LogStatusBar statusBar; 224 LogStatusBar statusBar;
224 225
225 boost::mutex stoneGlobalMutex; 226 boost::mutex stoneGlobalMutex;
226 Oracle oracle(stoneGlobalMutex, 4); // use 4 threads to download content 227 Oracle oracle(stoneGlobalMutex, 4); // use 4 threads to download content
227 OracleWebService webService(oracle, webServiceParameters); 228 OracleWebService webService(broker, oracle, webServiceParameters);
228 BasicSdlApplicationContext context(webService); 229 BasicSdlApplicationContext context(webService);
229 230
230 application.Initialize(&context, statusBar, parameters); 231 application.Initialize(&context, statusBar, parameters);
231 232
232 { 233 {