Changeset 14667 for trunk/FACT++/src
- Timestamp:
- 11/20/12 10:28:49 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/StateMachineDimControl.cc
r14662 r14667 297 297 { 298 298 fMutex.lock(); 299 const State state = dim->description(); 300 fCurrentStateList[server] = State(state.index, state.index==DimState::kNotAvailable?"":state.name, state.comment, state.time); 299 const State descr = dim->description(); 300 const State state = State(dim->state(), descr.index==DimState::kNotAvailable?"":descr.name, descr.comment, dim->cur.first); 301 fCurrentStateList[server] = state; 301 302 fMutex.unlock(); 302 303 … … 317 318 { 318 319 fMutex.lock(); 320 321 const auto is = fCurrentStateList.find(server); 319 322 for (auto it=dim->states.begin(); it!=dim->states.end(); it++) 323 { 320 324 fStateDescriptionList[make_pair(server, it->index)] = make_pair(it->name, it->comment); 325 if (is==fCurrentStateList.end()) 326 continue; 327 328 if (is->first==it->index) 329 { 330 is->second.name = it->name; 331 is->second.comment = it->comment; 332 } 333 } 334 321 335 fMutex.unlock(); 322 336
Note:
See TracChangeset
for help on using the changeset viewer.