some wording fixups.

Fri Mar 24 15:22:04 2006  Tim Janik  <timj@imendio.com>

        * glib/tmpl/atomic_operations.sgml: some wording fixups.
This commit is contained in:
Tim Janik 2006-03-24 14:22:32 +00:00 committed by Tim Janik
parent 601289c545
commit 9e98598d04
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,7 @@
Fri Mar 24 15:22:04 2006 Tim Janik <timj@imendio.com>
* glib/tmpl/atomic_operations.sgml: some wording fixups.
2006-03-20 Matthias Clasen <mclasen@redhat.com>
* glib/tmpl/types.sgml: Document G_HAVE_GINT64 as deprecated.

View File

@ -22,9 +22,11 @@ counting a very fast operation.
<note>
<para>
You must not directly read integers or pointers concurrently accessed
by other threads with with the following functions directly. Always use
g_atomic_int_get() and g_atomic_pointer_get() respectively. They are
acting as a memory barrier.
by multiple threads, but use the atomic accessor functions instead.
That is, always use g_atomic_int_get() and g_atomic_pointer_get() for
read outs.
They provide the neccessary synchonization mechanisms like memory
barriers to access memory locations concurrently.
</para>
</note>