[go: up one dir, main page]

File: rwlock.h

package info (click to toggle)
fio 3.33-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 10,896 kB
  • sloc: ansic: 78,615; sh: 5,191; python: 4,795; makefile: 832; yacc: 204; lex: 184
file content (19 lines) | stat: -rw-r--r-- 425 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#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