Skip to content

Commit

Permalink
GHI #32 Clarify cmpxchg weak vs strong
Browse files Browse the repository at this point in the history
  • Loading branch information
doodspav committed May 6, 2024
1 parent a98d367 commit 70a5b9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/patomic/types/ops/implicit.h
Original file line number Diff line number Diff line change
Expand Up @@ -441,12 +441,12 @@ typedef struct {
patomic_opsig_exchange_t fp_exchange;

/** @brief Atomic compare-exchange with implicit memory order. Operation may
* spuriously fail even if object's value matches expected value. */
* spuriously fail and act as if the object's value does not compare
* equal to the expected value. */
patomic_opsig_cmpxchg_t fp_cmpxchg_weak;

/** @brief Atomic compare-exchange with implicit memory order. Operation
* will never spuriously fail if object's value matches expected
* value. */
* will never spuriously fail. */
patomic_opsig_cmpxchg_t fp_cmpxchg_strong;

} patomic_ops_xchg_t;
Expand Down

0 comments on commit 70a5b9c

Please sign in to comment.