Linux Perf
rwsem.h
Go to the documentation of this file.
1
#ifndef _PERF_RWSEM_H
2
#define _PERF_RWSEM_H
3
4
#include <pthread.h>
5
6
struct
rw_semaphore
{
7
pthread_rwlock_t
lock
;
8
};
9
10
int
init_rwsem
(
struct
rw_semaphore
*sem);
11
int
exit_rwsem
(
struct
rw_semaphore
*sem);
12
13
int
down_read
(
struct
rw_semaphore
*sem);
14
int
up_read
(
struct
rw_semaphore
*sem);
15
16
int
down_write
(
struct
rw_semaphore
*sem);
17
int
up_write
(
struct
rw_semaphore
*sem);
18
19
#endif
/* _PERF_RWSEM_H */
init_rwsem
int init_rwsem(struct rw_semaphore *sem)
Definition:
rwsem.c:4
rw_semaphore::lock
pthread_rwlock_t lock
Definition:
rwsem.h:7
down_read
int down_read(struct rw_semaphore *sem)
Definition:
rwsem.c:14
exit_rwsem
int exit_rwsem(struct rw_semaphore *sem)
Definition:
rwsem.c:9
up_read
int up_read(struct rw_semaphore *sem)
Definition:
rwsem.c:19
up_write
int up_write(struct rw_semaphore *sem)
Definition:
rwsem.c:29
down_write
int down_write(struct rw_semaphore *sem)
Definition:
rwsem.c:24
rw_semaphore
Definition:
rwsem.h:6
util
rwsem.h
Generated by
1.8.13