Changeset 10218 for trunk/FACT++/src
- Timestamp:
- 03/03/11 12:45:37 (14 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/StateMachineImp.cc
r10183 r10218 144 144 // queue is empty 145 145 if (fEventQueue.size()) 146 for (Event *q=fEventQueue.front(); q; fEventQueue.pop _front())146 for (Event *q=fEventQueue.front(); q; fEventQueue.pop()) 147 147 delete q; 148 148 } … … 162 162 { 163 163 fMutex.lock(); 164 fEventQueue.push _back(cmd);164 fEventQueue.push(cmd); 165 165 fMutex.unlock(); 166 166 } … … 182 182 // and remove event from the stack 183 183 Event *cmd = fEventQueue.front(); 184 fEventQueue.pop _front();184 fEventQueue.pop(); 185 185 186 186 fMutex.unlock(); -
trunk/FACT++/src/StateMachineImp.h
r10183 r10218 3 3 4 4 #include <map> 5 #include < deque>5 #include <queue> 6 6 #include <mutex> 7 7 #include <vector> … … 35 35 36 36 std::vector<EventImp*> fListOfEvents; /// List of available commands as setup by user 37 std:: deque<Event*> fEventQueue; /// Event queue (fifo) for the received commands37 std::queue<Event*> fEventQueue; /// Event queue (fifo) for the received commands 38 38 39 39 std::mutex fMutex; /// Mutex to ensure thread-safe access to the command fifo
Note:
See TracChangeset
for help on using the changeset viewer.