C++26 / C++29対応としてhazard_pointerを追加 - #1710
Open
faithandbrave wants to merge 3 commits into
Open
Conversation
Contributor
# Conflicts: # lang/cpp29/feature_test_macros.md
Raclamusi
reviewed
Aug 10, 2026
Comment on lines
+30
to
+36
| 1. 型`T*`の変数`old`を`ptr`の値で初期化する。 | ||
| 2. [`reset_protection`](reset_protection.md)`(old)`を評価する。 | ||
| 3. `src.load(memory_order::acquire)`の値を`ptr`へ代入する。 | ||
| 4. `old == ptr`が`false`の場合、[`reset_protection`](reset_protection.md)`()`を評価する。 | ||
| * reset_protection[link reset_protection.md] | ||
| * src.load[link /reference/atomic/atomic/load.md] | ||
| * memory_order::acquire[link /reference/atomic/memory_order.md] |
Member
There was a problem hiding this comment.
インラインコードに対してコードブロックの修飾の書き方をしています。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
<hazard_pointer>のリファレンスを書きました。C++29での、複数オブジェクトの同時解放の関数もいっしょに追加してあります。数日置いてマージしようかと思います。