Skip to content

Conversation

@Yancey0623
Copy link
Contributor

Fixed #7040

@Yancey0623 Yancey0623 changed the title Run interface return future ThreadPool::Run interface return std::future Dec 28, 2017
namespace framework {

typedef std::function<void()> Task;
// typedef std::packaged_task<void()> Task;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove them.

reyoung
reyoung previously approved these changes Dec 28, 2017
Copy link
Collaborator

@reyoung reyoung left a comment

Choose a reason for hiding this comment

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

Excellent

@Yancey0623 Yancey0623 merged commit 5022ee6 into PaddlePaddle:develop Dec 28, 2017
@Yancey0623 Yancey0623 deleted the future_wait branch December 28, 2017 09:09
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