Back to index

glibc  2.9
pthread_setaffinity.c
Go to the documentation of this file.
00001 #include <tls.h>
00002 
00003 #define RESET_VGETCPU_CACHE() \
00004   do {                     \
00005     asm volatile ("movl %0, %%fs:%P1\n\t"                            \
00006                 "movl %0, %%fs:%P2"                                         \
00007                 :                                                    \
00008                 : "ir" (0), "i" (offsetof (struct pthread,                  \
00009                                         header.vgetcpu_cache[0])),          \
00010                   "i" (offsetof (struct pthread,                     \
00011                                header.vgetcpu_cache[1])));            \
00012   } while (0)
00013 
00014 #include "../pthread_setaffinity.c"