X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=os%2Fos-mac.h;h=ec2cc1e555f43c2bc5afce2cc35396ebd7adfc1d;hb=c91fd13d479dc38bbb7ef6995256ad098ebbceb2;hp=0d97f6b984c60196cbc66a11737a612bc815e1e9;hpb=44f668d7ba3d82c1218951b8c9ed058bedb89e17;p=fio.git diff --git a/os/os-mac.h b/os/os-mac.h index 0d97f6b9..ec2cc1e5 100644 --- a/os/os-mac.h +++ b/os/os-mac.h @@ -27,13 +27,11 @@ #define fio_swap32(x) OSSwapInt32(x) #define fio_swap64(x) OSSwapInt64(x) -/* - * OSX has a pitifully small shared memory segment by default, - * so default to a lower number of max jobs supported - */ -#define FIO_MAX_JOBS 128 - -typedef off_t off64_t; +#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 #ifndef CONFIG_CLOCKID_T typedef unsigned int clockid_t;