Changeset 14545
- Timestamp:
- 10/31/12 14:27:11 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Main.h
r14016 r14545 191 191 thread t(bind(Main::Thread, &io_service, dummy, ref(ret))); 192 192 193 // Wait until state machine is ready (The only case I can imagine 194 // in which the state will never chane is when DIM triggers 195 // an exit before the state machine has been started at all. 196 // Hopefully checking the readline (see Threed) should fix 197 // that -- difficult to test.) 198 while (io_service.GetCurrentState()<StateMachineImp::kSM_Ready && !shell.IsStopped()) 199 usleep(1); 200 201 // Execute command line commands 193 202 const vector<string> v1 = conf.Vec<string>("cmd"); 194 203 for (vector<string>::const_iterator it=v1.begin(); it!=v1.end(); it++) … … 199 208 shell.Execute(*it, args); 200 209 210 // Run the shell if no immediate exit was requested 201 211 if (!conf.Get<bool>("quit")) 202 shell.Run(); // Run the shell212 shell.Run(); 203 213 204 214 io_service.Stop(); // Signal Loop-thread to stop
Note:
See TracChangeset
for help on using the changeset viewer.