Commit 2b7d33ac authored by Éric Thiébaut's avatar Éric Thiébaut
Browse files

Fix some names of methods for r/w locks

parent 0c30e7a0
......@@ -464,7 +464,7 @@ tao_status tao_rwlock_abstimed_wrlock(
CALL_PTHREAD_TIMED_FUNC(ETIMEDOUT, pthread_rwlock_timedwrlock, lock, &ts);
}
tao_status tao_unlock_rwlock(
tao_status tao_rwlock_unlock(
tao_rwlock* lock)
{
CALL_PTHREAD_FUNC(pthread_rwlock_unlock, lock);
......
......@@ -350,7 +350,7 @@ static inline bool tao_clamp_b(bool arg1_, bool arg2_, bool arg3_)
* returned value is a standard @ref tao_status result.
*
* @see tao_unlock, tao_lock, tao_timed_lock, tao_abstimed_lock,
* tao_try_rdlock, tao_try_rwlock.
* tao_try_rdlock, tao_try_wrlock.
*/
#define tao_try_lock(obj) \
TAO_MUTEX_OR_SHARED_OBJECT_METHOD(try_lock, obj)(obj)
......@@ -362,7 +362,7 @@ static inline bool tao_clamp_b(bool arg1_, bool arg2_, bool arg3_)
* `secs` seconds. The returned value is a standard @ref tao_status result.
*
* @see tao_unlock, tao_lock, tao_try_lock, tao_abstimed_lock,
* tao_timed_rdlock, tao_timed_rwlock.
* tao_timed_rdlock, tao_timed_wrlock.
*/
#define tao_timed_lock(obj, secs) \
TAO_MUTEX_OR_SHARED_OBJECT_METHOD(timed_lock, obj)(obj, secs)
......@@ -375,7 +375,7 @@ static inline bool tao_clamp_b(bool arg1_, bool arg2_, bool arg3_)
* result.
*
* @see tao_unlock, tao_lock, tao_try_lock, tao_timed_lock,
* tao_abstimed_rdlock, tao_abstimed_rwlock.
* tao_abstimed_rdlock, tao_abstimed_wrlock.
*/
#define tao_abstimed_lock(obj, abstime) \
TAO_MUTEX_OR_SHARED_OBJECT_METHOD(abstimed_lock, obj)(obj, abstime)
......
......@@ -424,7 +424,7 @@ extern tao_status tao_rwlock_destroy(
*
* This function locks a read/write lock for read-only access. This function
* blocks until the lock can be acquired. In case of success, the caller is
* responsible for calling tao_unlock_rwlock() to eventually release the lock.
* responsible for calling tao_rwlock_unlock() to eventually release the lock.
*
* @param lock Pointer to the read/write lock.
*
......@@ -438,7 +438,7 @@ extern tao_status tao_rwlock_rdlock(
*
* This function locks a read/write lock for read-write access. This function
* blocks until the lock can be acquired. In case of success, the caller is
* responsible for calling tao_unlock_rwlock() to eventually release the lock.
* responsible for calling tao_rwlock_unlock() to eventually release the lock.
*
* @param lock Pointer to the read/write lock.
*
......@@ -453,7 +453,7 @@ extern tao_status tao_rwlock_wrlock(
*
* This function attempts to lock a read/write for read-only access. This
* function never blocks. In case of success, the caller is responsible for
* calling tao_unlock_rwlock() to eventually release the lock.
* calling tao_rwlock_unlock() to eventually release the lock.
*
* @param lock Pointer to the read/write lock.
*
......@@ -469,7 +469,7 @@ extern tao_status tao_rwlock_try_rdlock(
*
* This function attempts to lock a read/write for read-write access. This
* function never blocks. In case of success, the caller is responsible for
* calling tao_unlock_rwlock() to eventually release the lock.
* calling tao_rwlock_unlock() to eventually release the lock.
*
* @param lock Pointer to the read/write lock.
*
......@@ -562,9 +562,12 @@ extern tao_status tao_rwlock_timed_wrlock(
*
* @return @ref TAO_OK on success, @ref TAO_ERROR in case of failure.
*
* @see tao_lock_rwlock(), tao_try_lock_rwlock(), tao_timed_lock_rwlock().
* @see tao_rwlock_rdlock(), tao_rwlock_wrlock(),
* tao_rwlock_try_rdlock(), tao_rwlock_try_wrlock(),
* tao_rwlock_abstimed_rdlock(), tao_rwlock_abstimed_wrlock(),
* tao_rwlock_timed_rdlock(), tao_rwlock_timed_wrlock().
*/
extern tao_status tao_unlock_rwlock(
extern tao_status tao_rwlock_unlock(
tao_rwlock* lock);
/**
......
......@@ -122,7 +122,7 @@ static inline void lock_rwlock_for_writing(
static inline void unlock_rwlock(
tao_rwlock* rwlock)
{
if (tao_unlock_rwlock(rwlock) != TAO_OK) {
if (tao_rwlock_unlock(rwlock) != TAO_OK) {
tao_panic();
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment