1 Star 0 Fork 3

gaoxuelong / fio

forked from HoperunHarmony / fio 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
rwlock.h 425 Bytes
一键复制 编辑 原始数据 按行查看 历史
董森浩 提交于 2022-08-08 15:05 . 原版fio3.30
#ifndef FIO_RWLOCK_H
#define FIO_RWLOCK_H
#include <pthread.h>
#define FIO_RWLOCK_MAGIC 0x52574c4fU
struct fio_rwlock {
pthread_rwlock_t lock;
int magic;
};
extern void fio_rwlock_read(struct fio_rwlock *);
extern void fio_rwlock_write(struct fio_rwlock *);
extern void fio_rwlock_unlock(struct fio_rwlock *);
extern struct fio_rwlock *fio_rwlock_init(void);
extern void fio_rwlock_remove(struct fio_rwlock *);
#endif
1
https://gitee.com/gaoxuelong/fio.git
git@gitee.com:gaoxuelong/fio.git
gaoxuelong
fio
fio
master

搜索帮助