Merge branch 'pthread_getaffinity_1' of https://github.com/kusumi/fio
[fio.git] / os / os-aix.h
index 1aab96e08d40ad9656eaa41ba1626a348bfa0d52..db99eef4cef6214408277e70d0ba1685961307aa 100644 (file)
 
 #define FIO_USE_GENERIC_SWAP
 
+#ifdef CONFIG_PTHREAD_GETAFFINITY
+#define FIO_HAVE_GET_THREAD_AFFINITY
+#define fio_get_thread_affinity(mask)  \
+       pthread_getaffinity_np(pthread_self(), sizeof(mask), &(mask))
+#endif
+
 static inline int blockdev_invalidate_cache(struct fio_file *f)
 {
        return ENOTSUP;