From be1524ea4e2a2f7ad9ffbf2fad85f707ae3b6d57 Mon Sep 17 00:00:00 2001 From: Tim Blechmann Date: Thu, 6 Dec 2012 12:35:42 +0000 Subject: [PATCH] atomic: update documentation [SVN r81737] --- doc/atomic.qbk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/atomic.qbk b/doc/atomic.qbk index 4f5315a..763f737 100644 --- a/doc/atomic.qbk +++ b/doc/atomic.qbk @@ -9,6 +9,7 @@ [quickbook 1.4] [authors [Bahmann, Helge]] [copyright 2011 Helge Bahmann] + [copyright 2012 Tim Blechmann] [id atomic] [dirname atomic] [purpose Atomic operations] @@ -414,6 +415,10 @@ All atomic objects supports the following operations: [`atomic(T initial_value)`] [Initialize to [^initial_value]] ] + [ + [`bool is_lock_free()`] + [Checks if the atomic object is lock-free] + ] [ [`T load(memory_order order)`] [Return current value] @@ -645,6 +650,8 @@ limitations that cannot be lifted without compiler support: as "full compiler barriers" in this implementation. In corner cases this may lead to worse code than a C++11 compiler could generate. +* [*No interprocess fallback]: using `atomic` in shared memory only works + correctly, if `atomic::is_lock_free == true` [endsect]