File: LinuxMembarrier_test.cc

package info (click to toggle)
seastar 25.05.0-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 7,256 kB
  • sloc: cpp: 89,250; python: 5,066; ansic: 3,452; sh: 1,272; xml: 177; makefile: 9
file content (8 lines) | stat: -rw-r--r-- 164 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
extern "C" {
#include <linux/membarrier.h>
}

int main() {
    int x = MEMBARRIER_CMD_PRIVATE_EXPEDITED | MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED;
    (void)x;
}