RTEMS 6.1-rc1
mutex.h
1#ifndef __LINUX_MUTEX_H
2#define __LINUX_MUTEX_H
3
4#include <rtems/thread.h>
5
6struct 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
Definition: mutex.h:6
This header file provides the API of Self-Contained Objects.