barrier man page on MacOSX

Man page or keyword search:  
man Server   23457 pages
apropos Keyword Search (all sections)
Output format
MacOSX logo
[printable version]

BARRIER(3)		 BSD Library Functions Manual		    BARRIER(3)

     OSMemoryBarrier — memory barrier to order loads and stores

     Standard C Library (libc, -lc)

     #include <libkern/OSAtomic.h>


     OSMemoryBarrier() strictly orders memory accesses in a weakly ordered
     memory model such as with PowerPC, by creating a barrier.	All loads and
     stores executed in sequential program order before the barrier will com‐
     plete with respect to the memory coherence mechanism, before any load or
     store executed after the barrier.	Used with an atomic operation, the
     barrier can be used to create custom synchronization protocols as an
     alternative to the spinlock or queue/dequeue operations.  Note that this
     barrier does not order uncached loads and stores.	On a uniprocessor, the
     barrier operation is typically optimized into a nop.

     atomic(3), spinlock(3)

Darwin				 May 26, 2004				Darwin

List of man pages available for MacOSX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net