Changeset 10873 for trunk/FACT++/src/StateMachineImp.cc
- Timestamp:
- 05/27/11 16:30:07 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/StateMachineImp.cc
r10780 r10873 316 316 // FIXME: Is this thread safe? (Yes, because the data is copied) 317 317 // But two handlers could be called at the same time. Do we 318 // need to lock the handlers? 318 // need to lock the handlers? (Dim + console) 319 // FIXME: Is copying of the data necessary? 319 320 const Event event(evt, ptr, siz); 320 321 HandleEvent(event); … … 456 457 { 457 458 // Find the event from the list of commands and queue it 458 for (vector<EventImp*>::const_iterator c=fListOfEvents.begin(); c!=fListOfEvents.end(); c++) 459 if (*c == cmd) 460 return true; 461 462 return false; 459 return find(fListOfEvents.begin(), fListOfEvents.end(), cmd)!=fListOfEvents.end(); 463 460 } 464 461
Note:
See TracChangeset
for help on using the changeset viewer.