X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=mutex.h;h=4f3486df7a3b01163515cd548678445d7e40b924;hp=49a66e361bc52ed7c09328578dc4a912ec1c4e83;hb=954cd73a9a93102c24afa869fbe67ac38af6e416;hpb=d7df1d133b0c3daad4ae4c731e0dae7b0181fd62 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 {