We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e6d999 commit 9caaf6fCopy full SHA for 9caaf6f
1 file changed
thread/thread.cpp
@@ -391,6 +391,7 @@ namespace photon
391
// compare m_nodes[idx] with parent node.
392
bool up(int idx)
393
{
394
+ if (q.empty()) return false;
395
auto tmp = q[idx];
396
bool ret = false;
397
while (idx != 0){
@@ -410,6 +411,7 @@ namespace photon
410
411
// compare m_nodes[idx] with child node.
412
bool down(int idx)
413
414
415
416
size_t cmpIdx = (idx << 1) + 1;
417
0 commit comments