File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ class Tree
121
121
// / Sleep for a certain amount of time.
122
122
// / This sleep could be interrupted by the method
123
123
// / TreeNode::emitWakeUpSignal()
124
- void sleep (std::chrono::system_clock::duration timeout);
124
+ bool sleep (std::chrono::system_clock::duration timeout);
125
125
126
126
~Tree ();
127
127
Original file line number Diff line number Diff line change @@ -586,9 +586,9 @@ TreeNode* Tree::rootNode() const
586
586
return subtree_nodes.empty () ? nullptr : subtree_nodes.front ().get ();
587
587
}
588
588
589
- void Tree::sleep (std::chrono::system_clock::duration timeout)
589
+ bool Tree::sleep (std::chrono::system_clock::duration timeout)
590
590
{
591
- wake_up_->waitFor (std::chrono::duration_cast<std::chrono::milliseconds>(timeout));
591
+ return wake_up_->waitFor (std::chrono::duration_cast<std::chrono::milliseconds>(timeout));
592
592
}
593
593
594
594
Tree::~Tree ()
You can’t perform that action at this time.
0 commit comments