Changeset 13796 for trunk/FACT++/src
- Timestamp:
- 05/20/12 17:34:52 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Main.h
r13749 r13796 71 71 } 72 72 73 void Thread(MainImp *io_service, bool dummy )73 void Thread(MainImp *io_service, bool dummy, int &rc) 74 74 { 75 75 // This is necessary so that the StateMachien Thread can signal the 76 76 // Readline to exit 77 io_service->Run(dummy);77 rc = io_service->Run(dummy); 78 78 Readline::Stop(); 79 79 } … … 189 189 190 190 // boost::thread t(boost::bind(&AutoScheduler<S>::Run, &io_service)); 191 thread t(bind(Main::Thread, &io_service, dummy)); 191 int ret = 0; 192 thread t(bind(Main::Thread, &io_service, dummy, ref(ret))); 192 193 193 194 const vector<string> v1 = conf.Vec<string>("cmd"); … … 211 212 t.join(); 212 213 213 return 0;214 return ret; 214 215 } 215 216 }
Note:
See TracChangeset
for help on using the changeset viewer.