Rate This Document
Findability
Accuracy
Completeness
Readability

HTL_thread_rwlock_unlock

Releases the RW lock.

Interface Definition

int HTL_thread_rwlock_unlock(HTL_thread_rwlock_t *thread_rwlock);

Description

HTL_thread_rwlock_init() is used to release the RW lock.

Parameters

Parameter

Type

Description

Input/Output

thread_rwlock

HTL_thread_rwlock_t *

Address of the handle to the RW lock.

Input

Return Value

  • HTL_THREAD_SUCCESS: success.
  • Other values: failure. For details, see the error code descriptions.

Example

1
2
    ret = HTL_thread_rwlock_wrlock(&rwlock);
    ret = HTL_thread_rwlock_unlock(&rwlock);