10 Star 15 Fork 5

anolis / fio

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
rwlock.h 425 Bytes
一键复制 编辑 原始数据 按行查看 历史
#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/anolis/fio.git
git@gitee.com:anolis/fio.git
anolis
fio
fio
an8

搜索帮助