Skip to content

Conversation

@lo-simon
Copy link
Collaborator

No description provided.

#ifndef NMOS_MUTEX_H
#define NMOS_MUTEX_H

#include <condition_variable>
Copy link
Contributor

Choose a reason for hiding this comment

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

This header should come from bst/shared_mutex.h and if there's a case where it should be but isn't, the fix belongs there, I think?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The <condition_variable> header only comes from bst/shared_mutex. h when BST_THREAD_BOOST is not defined. We have the BST_THREAD_BOOST set as the default in the build, i.e., we always use boost as the default.

we should include the for std::unique_lock instead of the <condition_variable>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants