From: Ivan Maidanski Date: Wed, 2 Nov 2016 08:15:15 +0000 (+0300) Subject: Fix (improve) AO_REQUIRE_CAS description in README X-Git-Tag: v7.2h~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=22c411a02c8ffedb84615fa6b5acd4b1896c7787;p=libatomic_ops 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*"). --- 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