Changes in src/Actions/ActionQueue.cpp [06b5df:cfb9c5]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/ActionQueue.cpp
r06b5df rcfb9c5 98 98 void ActionQueue::queueAction(const Action * const _action, enum Action::QueryOptions state) 99 99 { 100 OBSERVE;101 NOTIFY(ActionQueued);102 100 Action *newaction = _action->clone(state); 103 101 newaction->prepare(state); … … 123 121 std::cerr << "ActionQueue cleared." << std::endl; 124 122 } 123 if (lastActionOk) { 124 OBSERVE; 125 NOTIFY(ActionQueued); 126 _lastchangedaction = newaction; 127 } 125 128 #else 126 129 { … … 130 133 mtx_queue.unlock(); 131 134 #endif 132 _lastchangedaction = newaction;133 135 } 134 136 … … 193 195 CurrentAction = (size_t)-1; 194 196 } 197 if (lastActionOk) { 198 OBSERVE; 199 NOTIFY(ActionQueued); 200 _lastchangedaction = actionqueue[CurrentAction]; 201 } 195 202 // access actionqueue, hence using mutex 196 203 mtx_queue.lock();
Note:
See TracChangeset
for help on using the changeset viewer.