Add MUTEX_CLEAR_WAITERS().
This commit is contained in:
parent
58bb4135a9
commit
def3fb26c7
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mutex.h,v 1.3 2007/02/10 12:15:24 skrll Exp $ */
|
||||
/* $NetBSD: mutex.h,v 1.4 2007/02/15 22:52:42 ad Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002, 2007 The NetBSD Foundation, Inc.
|
||||
|
@ -184,6 +184,12 @@ MUTEX_RELEASE(kmutex_t *mtx)
|
|||
mtx->mtx_waiters = 0;
|
||||
}
|
||||
|
||||
static inline void
|
||||
MUTEX_CLEAR_WAITERS(kmutex_t *mtx)
|
||||
{
|
||||
mtx->mtx_waiters = 0;
|
||||
}
|
||||
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* __MUTEX_PRIVATE */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mutex.h,v 1.2 2007/02/09 21:55:12 ad Exp $ */
|
||||
/* $NetBSD: mutex.h,v 1.3 2007/02/15 22:52:43 ad Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002, 2007 The NetBSD Foundation, Inc.
|
||||
|
@ -174,6 +174,12 @@ MUTEX_RELEASE(kmutex_t *mtx)
|
|||
__cpu_simple_unlock(&mtx->mtx_lock);
|
||||
}
|
||||
|
||||
static inline void
|
||||
MUTEX_CLEAR_WAITERS(kmutex_t *mtx)
|
||||
{
|
||||
__cpu_simple_unlock(&mtx->mtx_lock);
|
||||
}
|
||||
|
||||
#endif /* __MUTEX_PRIVATE */
|
||||
|
||||
#endif /* _SH3_MUTEX_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mutex.h,v 1.2 2007/02/09 21:55:12 ad Exp $ */
|
||||
/* $NetBSD: mutex.h,v 1.3 2007/02/15 22:52:43 ad Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002, 2007 The NetBSD Foundation, Inc.
|
||||
|
@ -207,6 +207,12 @@ MUTEX_RELEASE(kmutex_t *mtx)
|
|||
__cpu_simple_unlock(&mtx->mtx_lock);
|
||||
}
|
||||
|
||||
static inline void
|
||||
MUTEX_CLEAR_WAITERS(kmutex_t *mtx)
|
||||
{
|
||||
__cpu_simple_unlock(&mtx->mtx_lock);
|
||||
}
|
||||
|
||||
#endif /* __MUTEX_PRIVATE */
|
||||
|
||||
#endif /* _SPARC_MUTEX_H_ */
|
||||
|
|
Loading…
Reference in New Issue