Implement mtx_destroy() and rw_destroy().
MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
This commit is contained in:
parent
83866607fb
commit
572cdb2216
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=211975
@ -48,6 +48,14 @@ mtx_init(pthread_mutex_t *lock)
|
||||
assert(error == 0);
|
||||
}
|
||||
static __inline void
|
||||
mtx_destroy(pthread_mutex_t *lock)
|
||||
{
|
||||
int error;
|
||||
|
||||
error = pthread_mutex_destroy(lock);
|
||||
assert(error == 0);
|
||||
}
|
||||
static __inline void
|
||||
mtx_lock(pthread_mutex_t *lock)
|
||||
{
|
||||
int error;
|
||||
@ -88,6 +96,14 @@ rw_init(pthread_rwlock_t *lock)
|
||||
assert(error == 0);
|
||||
}
|
||||
static __inline void
|
||||
rw_destroy(pthread_rwlock_t *lock)
|
||||
{
|
||||
int error;
|
||||
|
||||
error = pthread_rwlock_destroy(lock);
|
||||
assert(error == 0);
|
||||
}
|
||||
static __inline void
|
||||
rw_rlock(pthread_rwlock_t *lock)
|
||||
{
|
||||
int error;
|
||||
|
Loading…
Reference in New Issue
Block a user