Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntrusiveQueue add remove method, iterators, and update test #12246

Merged
merged 3 commits into from
Jun 13, 2019

Conversation

dagar
Copy link
Member

@dagar dagar commented Jun 11, 2019

No description provided.

@dagar dagar force-pushed the pr-queue_remove branch from eb79882 to 79689a0 Compare June 12, 2019 02:08
@@ -68,7 +68,7 @@ class BlockingList : public List<T>
return List<T>::remove(removeNode);
}

size_t size() const
size_t size()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can make _mutex mutable to leave const.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, you're prompting good const correctness questions.

src/systemcmds/tests/test_IntrusiveQueue.cpp Show resolved Hide resolved
Copy link
Contributor

@julianoes julianoes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok that's better.

@dagar dagar merged commit a4a130f into PX4:master Jun 13, 2019
@dagar dagar deleted the pr-queue_remove branch June 13, 2019 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants