• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef _SYS_MEMBARRIER_H
2 #define _SYS_MEMBARRIER_H
3 
4 #define MEMBARRIER_CMD_QUERY 0
5 #define MEMBARRIER_CMD_GLOBAL 1
6 #define MEMBARRIER_CMD_GLOBAL_EXPEDITED 2
7 #define MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED 4
8 #define MEMBARRIER_CMD_PRIVATE_EXPEDITED 8
9 #define MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED 16
10 #define MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE 32
11 #define MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE 64
12 
13 #define MEMBARRIER_CMD_SHARED MEMBARRIER_CMD_GLOBAL
14 
15 int membarrier(int, int);
16 
17 #endif
18