Skip to content

Conversation

@laanwj
Copy link
Member

@laanwj laanwj commented Nov 20, 2015

I'm not sure what versions of Boost we reasonably support, anyway,

try_join_for was introduced in Boost 1.50: http://www.boost.org/doc/libs/1_50_0/doc/html/thread/thread_management.html#thread.thread_management.thread.try_join_for

1.49 has timed_join, one can accomplish the same with: http://www.boost.org/doc/libs/1_49_0/doc/html/thread/thread_management.html#thread.thread_management.thread.timed_join

However, timed_join was deprecated in 1.50. So a conditional is necessary.

This solution was tested in #7031.

`try_join_for` was introduced in Boost 1.50:
http://www.boost.org/doc/libs/1_50_0/doc/html/thread/thread_management.html#thread.thread_management.thread.try_join_for

1.49 has `timed_join`, one can accomplish the same with:
http://www.boost.org/doc/libs/1_49_0/doc/html/thread/thread_management.html#thread.thread_management.thread.timed_join

However, `timed_join` was deprecated in 1.50. So a conditional is
necessary.

This solution was tested in bitcoin#7031.
@maflcko
Copy link
Member

maflcko commented Nov 20, 2015

utACK

@jonasschnelli
Copy link
Contributor

Code Review ACK

@jmcorgan
Copy link
Contributor

utACK

@laanwj laanwj merged commit 3522f49 into bitcoin:master Nov 24, 2015
laanwj added a commit that referenced this pull request Nov 24, 2015
3522f49 http: add Boost 1.49 compatibility (Wladimir J. van der Laan)
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants