X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=mutex.h;h=4f3486df7a3b01163515cd548678445d7e40b924;hb=e171fde52d9c2d0247365793d464a2a3c5e3af22;hp=49a66e361bc52ed7c09328578dc4a912ec1c4e83;hpb=d7213923067aa49922962a469a691c3ec951064d;p=fio.git diff --git a/mutex.h b/mutex.h index 49a66e36..4f3486df 100644 --- a/mutex.h +++ b/mutex.h @@ -3,15 +3,20 @@ #include +#define FIO_MUTEX_MAGIC 0x4d555445U +#define FIO_RWLOCK_MAGIC 0x52574c4fU + struct fio_mutex { pthread_mutex_t lock; pthread_cond_t cond; int value; int waiters; + int magic; }; struct fio_rwlock { pthread_rwlock_t lock; + int magic; }; enum {