Skip to content

Commit 1fc89c2

Browse files
committed
cursor opt
1 parent a2b4f77 commit 1fc89c2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/domino/Domino.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ static const Domino::Events defaultEVs; // internal use only
1818
void Domino::deduceStateFrom_(const Event& aValidEv) noexcept
1919
{
2020
stack<Event> evStack;
21-
for (auto curEV = aValidEv; ; curEV = move(evStack.top()), evStack.pop()) {
21+
for (auto curEV = aValidEv; ; curEV = evStack.top(), evStack.pop()) {
2222
HID("(Domino) en=" << evName_(curEV));
2323

2424
// recalc self state
@@ -28,7 +28,7 @@ void Domino::deduceStateFrom_(const Event& aValidEv) noexcept
2828
// deduce next
2929
for (bool branch : {true, false}) { // search next_[true] & next_[false]
3030
for (auto&& nextEV : findPeerEVs(curEV, next_[branch])) {
31-
evStack.push(move(nextEV)); // dup-deduce is safer (like real domino)
31+
evStack.push(nextEV); // dup-deduce is safer (like real domino)
3232
}
3333
}
3434
}

src/thread/MtInQueue.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ size_t MtInQueue::mt_size(bool canBlock) noexcept
104104

105105
// non block
106106
unique_lock<mutex> tryGuard(mutex_, try_to_lock);
107-
HID(__LINE__ << " owns=" << tryGuard.owns_lock());
107+
//HID(__LINE__ << " owns=" << tryGuard.owns_lock());
108108
return tryGuard.owns_lock()
109109
? queue_.size() + cache_.size()
110110
: cache_.size();

0 commit comments

Comments
 (0)