Browse Source

*** empty log message ***

master
Marc Alexander Lehmann 2 years ago
parent
commit
29e7eb43c1
  1. 4
      ev_linuxaio.c

4
ev_linuxaio.c

@ -248,7 +248,9 @@ linuxaio_get_events_from_ring (EV_P)
linuxaio_parse_events (EV_A_ ring->io_events, tail);
}
/* as an extension to C, we hope that the volatile will makethis atomic and once-only */
/* TODO: we only need a compiler barrier here, not a read fence */
ECB_MEMORY_FENCE_RELEASE;
/* as an extension to C, we hope that the volatile will make this atomic and once-only */
*(volatile unsigned *)&ring->head = tail;
/* make sure kernel can see our new head value - probably not required */
ECB_MEMORY_FENCE_RELEASE;

Loading…
Cancel
Save