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

Support Boost.Thread v4 #2192

Merged
merged 1 commit into from Jun 2, 2016
Merged

Support Boost.Thread v4 #2192

merged 1 commit into from Jun 2, 2016

Conversation

K-ballo
Copy link
Member

@K-ballo K-ballo commented May 31, 2016

  • Replace boost::condition with boost::condition_variable
  • Replace typename Mutex::scoped_lock with unique_lock<Mutex>

- Replace boost::condition with boost::condition_variable
- Replace typename Mutex::scoped_lock with unique_lock<Mutex>
@hkaiser
Copy link
Member

hkaiser commented May 31, 2016

Do we have to explicitly enable V4 of the threads library? Is that the default?

@K-ballo
Copy link
Member Author

K-ballo commented May 31, 2016

The default is v2 for backwards compatibility, v4 is recommended as it aligns more closely with the standard.

It's up to the user to pick the version they want. We don't have to (and should not) mess with that, just make sure that we can work with -DBOOST_THREAD_VERSION=4 too since that's recommended for new projects.

@hkaiser
Copy link
Member

hkaiser commented May 31, 2016

Ok, thanks. LGTM.

@hkaiser hkaiser merged commit d16058a into master Jun 2, 2016
@hkaiser hkaiser deleted the boost-thread-v4 branch June 2, 2016 17:26
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.

None yet

2 participants