RTEMS
6.1-rc1
cpukit
libfs
src
jffs2
include
linux
mutex.h
1
#ifndef __LINUX_MUTEX_H
2
#define __LINUX_MUTEX_H
3
4
#include <
rtems/thread.h
>
5
6
struct
mutex
{ rtems_mutex r_m; };
7
8
#define DEFINE_MUTEX(m) struct mutex m
9
10
#define mutex_init(m) rtems_mutex_init(&(m)->r_m, "JFFS2 Mutex"
);
11
12
#define mutex_lock(m) rtems_mutex_lock(&(m)->r_m);
13
14
#define mutex_lock_interruptible(m) ({ mutex_lock(m); 0; })
15
16
#define mutex_unlock(m) rtems_mutex_unlock(&(m)->r_m);
17
18
#define mutex_is_locked(m) 1
19
20
#endif
mutex
Definition:
mutex.h:6
thread.h
This header file provides the API of Self-Contained Objects.
Generated by
1.9.4