membar_exit man page on NetBSD

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

MEMBAR_OPS(3)		 BSD Library Functions Manual		 MEMBAR_OPS(3)

NAME
     membar_ops, membar_enter, membar_exit, membar_producer, membar_consumer,
     membar_sync — memory access barrier operations

SYNOPSIS
     #include <sys/atomic.h>

     void
     membar_enter(void);

     void
     membar_exit(void);

     void
     membar_producer(void);

     void
     membar_consumer(void);

     void
     membar_sync(void);

DESCRIPTION
     The membar_ops family of functions provide memory access barrier opera‐
     tions necessary for synchronization in multiprocessor execution environ‐
     ments that have relaxed load and store order.

     membar_enter()
	  Any store preceding membar_enter() will reach global visibility
	  before all loads and stores following it.

	  membar_enter() is typically used in code that implements locking
	  primitives to ensure that a lock protects its data.

     membar_exit()
	  All loads and stores preceding membar_exit() will reach global visi‐
	  bility before any store that follows it.

	  membar_exit() is typically used in code that implements locking
	  primitives to ensure that a lock protects its data.

     membar_producer()
	  All stores preceding the memory barrier will reach global visibility
	  before any stores after the memory barrier reach global visibility.

     membar_consumer()
	  All loads preceding the memory barrier will complete before any
	  loads after the memory barrier complete.

     membar_sync()
	  All loads and stores preceding the memory barrier will complete and
	  reach global visibility before any loads and stores after the memory
	  barrier complete and reach global visibility.

SEE ALSO
     atomic_ops(3)

HISTORY
     The membar_ops functions first appeared in NetBSD 5.0.

BSD			       February 11, 2007			   BSD
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server NetBSD

List of man pages available for NetBSD

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]
Tweet
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