Skip to content

Fix c++11 build for Ubuntu 14.04#446

Open
lo-simon wants to merge 4 commits into
sony:masterfrom
lo-simon:fix-c++11-build
Open

Fix c++11 build for Ubuntu 14.04#446
lo-simon wants to merge 4 commits into
sony:masterfrom
lo-simon:fix-c++11-build

Conversation

@lo-simon

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread Development/nmos/mutex.h Outdated
#ifndef NMOS_MUTEX_H
#define NMOS_MUTEX_H

#include <condition_variable>

Copy link
Copy Markdown
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
Copy Markdown
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

2 participants