Skip to content

Conversation

tensor-tang
Copy link
Contributor

follow comment #11233 (review)

And refine scope lock

@tensor-tang tensor-tang requested a review from panyx0718 June 7, 2018 02:59

void Scope::Rename(const std::string& origin_name,
const std::string& new_name) const {
std::unique_lock<std::mutex> lock(mutex_);
Copy link
Contributor

Choose a reason for hiding this comment

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

we might also need lock in L98

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks

@tensor-tang tensor-tang merged commit 0ddc5d8 into PaddlePaddle:develop Jun 15, 2018
@tensor-tang tensor-tang deleted the refine branch June 15, 2018 10:06
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