RTEMS 6.1-rc1
spinlock.h
1#ifndef __LINUX_SPINLOCK_H__
2#define __LINUX_SPINLOCK_H__
3
4#include <rtems/thread.h>
5
6typedef struct { rtems_mutex r_m; } spinlock_t;
7
8#define DEFINE_SPINLOCK(x) spinlock_t x
9
10#define spin_lock_init(x) rtems_mutex_init(&(x)->r_m, "JFFS2 Spinlock");
11
12#define spin_lock(x) rtems_mutex_lock(&(x)->r_m);
13
14#define spin_unlock(x) rtems_mutex_unlock(&(x)->r_m);
15
16#endif /* __LINUX_SPINLOCK_H__ */
Definition: spinlock.h:6
This header file provides the API of Self-Contained Objects.