diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2016-11-02 11:15:15 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2016-11-03 18:08:36 +0300 |
commit | 22c411a02c8ffedb84615fa6b5acd4b1896c7787 (patch) | |
tree | 8fd23a64e2b0139f61e1163698e788391fbc5ee4 | |
parent | 06b9a7a552582c9176f943581d4bcf49ca39a754 (diff) | |
download | libatomic_ops-22c411a02c8ffedb84615fa6b5acd4b1896c7787.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 a26c155..9fab3bc 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 |