Re: declaration of memory barrier function
- From: David Schwartz <davids@xxxxxxxxxxxxx>
- Date: Mon, 22 Jun 2009 16:21:05 -0700 (PDT)
On Jun 22, 12:59 pm, dbtouch <dbto...@xxxxxxxxx> wrote:
Dear Linux Programmers,
I am using fedora 10 with version of 2.6.27.5-117.fc10.x86_64 #1 SMP.
I am looking for the system head file where memory barrier functions
are declared.
Thanks,
dbtouch
There is no memory barrier API provided by default. If you want one,
you have to code it. On x86-64, this is sufficient:
#define membar() __asm__ __volatile__("" : : : "memory")
DS
.
- Follow-Ups:
- Re: declaration of memory barrier function
- From: dbtouch
- Re: declaration of memory barrier function
- References:
- declaration of memory barrier function
- From: dbtouch
- declaration of memory barrier function
- Prev by Date: declaration of memory barrier function
- Next by Date: Re: declaration of memory barrier function
- Previous by thread: declaration of memory barrier function
- Next by thread: Re: declaration of memory barrier function
- Index(es):
Relevant Pages
|