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

feat: add syncx.Pool #44

Merged
merged 2 commits into from
Jun 6, 2021
Merged

feat: add syncx.Pool #44

merged 2 commits into from
Jun 6, 2021

Conversation

Hchenn
Copy link
Collaborator

@Hchenn Hchenn commented Jun 3, 2021

See README for details.

@Hchenn Hchenn force-pushed the feat/syncx branch 2 times, most recently from 83e49b2 to 0db792d Compare June 3, 2021 13:33
}

func init() {
runtime_registerPoolCleanup(poolCleanup)
Copy link
Collaborator

Choose a reason for hiding this comment

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

会不会覆盖官方 sync.Pool 的清理逻辑?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

这里还请评估一下,具体参见 poolCleanup 的实现,我同时 link 了 runtime 的 poolCleanup

Copy link
Collaborator

Choose a reason for hiding this comment

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

嗯,主要有点担心未来官方的版本逻辑修改了导致出现不可预测问题。不过目前来看应该没啥太大问题。

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

是有这问题,这里加个注释警告

PureWhiteWu
PureWhiteWu previously approved these changes Jun 6, 2021
lang/syncx/linkname.go Outdated Show resolved Hide resolved
lang/syncx/pool.go Outdated Show resolved Hide resolved
zhangyunhao116
zhangyunhao116 previously approved these changes Jun 6, 2021
Copy link
Member

@zhangyunhao116 zhangyunhao116 left a comment

Choose a reason for hiding this comment

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

Thanks!

PureWhiteWu
PureWhiteWu previously approved these changes Jun 6, 2021
@Hchenn Hchenn dismissed stale reviews from PureWhiteWu and zhangyunhao116 via dbb5d08 June 6, 2021 08:14
@Hchenn Hchenn merged commit ca0c74a into develop Jun 6, 2021
@Hchenn Hchenn deleted the feat/syncx branch June 6, 2021 08:38
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.

3 participants