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

Mac M1环境下使用并发链表进行测试,4线程对链表push,4线程对链表pop,会出现重复delete同一个节点的错误 #34

Open
Beat0n opened this issue Jul 20, 2024 · 1 comment

Comments

@Beat0n
Copy link

Beat0n commented Jul 20, 2024

No description provided.

@archibate
Copy link
Collaborator

对不起!我的问题,将relaxed改成consume,应该没问题了。

Node *old_head = head.load(std::memory_order_consume);

image

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

No branches or pull requests

2 participants