Loading xlap.h +21 −0 Original line number Diff line number Diff line Loading @@ -126,6 +126,27 @@ typedef char XlapTimestampPlaceholder; } while (0) #endif /* * update the clock value of a cyclestamp by setting an explicit value * * This macro will cause a SIGSEGV if the application does not install a * timestamp table to the socket. */ #ifdef XLAP # define XlapCycleStampValue(sck, kind, seqno, id, value) do { \ atomic_load_explicit(&(sck)->tstable[kind], memory_order_acquire)->rows[(seqno) % TS_ROWS].time[ts_##id].actual.c = value; \ } while (0) #else /* XLAP */ # define XlapCycleStampValue(sck, kind, seqno, id, value) do { \ (void) (sck); \ (void) (kind); \ (void) (seqno); \ (void) (ts_##id); \ (void) (value); \ } while (0) #endif /* * update the clock value of a timestamp * Loading Loading
xlap.h +21 −0 Original line number Diff line number Diff line Loading @@ -126,6 +126,27 @@ typedef char XlapTimestampPlaceholder; } while (0) #endif /* * update the clock value of a cyclestamp by setting an explicit value * * This macro will cause a SIGSEGV if the application does not install a * timestamp table to the socket. */ #ifdef XLAP # define XlapCycleStampValue(sck, kind, seqno, id, value) do { \ atomic_load_explicit(&(sck)->tstable[kind], memory_order_acquire)->rows[(seqno) % TS_ROWS].time[ts_##id].actual.c = value; \ } while (0) #else /* XLAP */ # define XlapCycleStampValue(sck, kind, seqno, id, value) do { \ (void) (sck); \ (void) (kind); \ (void) (seqno); \ (void) (ts_##id); \ (void) (value); \ } while (0) #endif /* * update the clock value of a timestamp * Loading