Re: declaration of memory barrier function



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
.



Relevant Pages

  • Re: declaration of memory barrier function
    ... I am looking for the system head file where memory barrier functions ... There is no memory barrier API provided by default. ...
    (comp.os.linux.development.apps)
  • declaration of memory barrier function
    ... 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 ...
    (comp.os.linux.development.apps)