Sign in
nest-open-source
/
manifest_repos
/
kernel
/
4f18c0c0649c21299b096883d4328736d60f04cc
/
.
/
tools
/
include
/
linux
/
spinlock.h
blob: 58397dcb19d6092a607478d070a850f162e49bed [
file
] [
log
] [
blame
]
#define
spinlock_t
pthread_mutex_t
#define
DEFINE_SPINLOCK
(
x
)
pthread_mutex_t
x
=
PTHREAD_MUTEX_INITIALIZER
;
#define
spin_lock_irqsave
(
x
,
f
)
(
void
)
f
,
pthread_mutex_lock
(
x
)
#define
spin_unlock_irqrestore
(
x
,
f
)
(
void
)
f
,
pthread_mutex_unlock
(
x
)