diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2016-11-02 11:15:15 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2016-11-02 11:16:42 +0300 |
commit | c25a7aa4173d724a8264b0b7aa86071c156a0caf (patch) | |
tree | 060bbe4c1e78dff7157d7668fef98ab358107979 | |
parent | 020bdf20b8f972a32e93064b2d836aab1ed23d83 (diff) | |
download | libatomic_ops-c25a7aa4173d724a8264b0b7aa86071c156a0caf.tar.gz |
Fix (improve) AO_REQUIRE_CAS description in README
* doc/README.txt: Document AO_REQUIRE_CAS better (replace
"compare-and-swap" with "AO_compare_and_swap*").
-rw-r--r-- | doc/README.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/README.txt b/doc/README.txt index cf98bbf..5902e4f 100644 --- a/doc/README.txt +++ b/doc/README.txt @@ -25,9 +25,9 @@ by synthesis). This is an attempt to replace various existing files with similar goals, since they usually do not handle differences in memory barrier styles with sufficient generality. -If this is included after defining AO_REQUIRE_CAS, then the package -will make an attempt to emulate compare-and-swap in a way that (at least -on Linux) should still be async-signal-safe. As a result, most other +If this is included after defining AO_REQUIRE_CAS, then the package makes +an attempt to emulate AO_compare_and_swap* (single-width) in a way that (at +least on Linux) should still be async-signal-safe. As a result, most other atomic operations will then be defined using the compare-and-swap emulation. This emulation is slow, since it needs to disable signals. And it needs to block in case of contention. If you care about performance |