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

refactor syncAwait without executor (draft version) #405

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

chloro-pn
Copy link
Collaborator

just a test for CI

Why

#404

What is changing

Example

Comment on lines +63 to +64
* 解决办法:1.
* cv+mutex+quit_flag,这种情况对性能有损伤(不过现代架构下锁争抢是性能衰退的主要原因,无冲突的加解锁可以接受)。
Copy link
Collaborator

Choose a reason for hiding this comment

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

我个人意见一直是不把不绑定调度器的情况看作主要使用方式的而且 syncAwait 按设计也是只应该在测试中使用。所以这种情况下损失性能就损伤了吧。

当然我觉得直接把这个函数的实现里写个 assert 也是可以的

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