Operating systems, development tools, and professional services
for connected embedded systems
for connected embedded systems
![]() |
![]() |
![]() |
![]() |
pthread_sleepon_unlock()
Unlock the pthread_sleepon*() functions
Synopsis:
#include <pthread.h> int pthread_sleepon_unlock( void );
Library:
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
Description:
The pthread_sleepon_unlock() function calls pthread_mutex_unlock() on a mutex associated with the pthread_sleepon*() class of functions. You should call it at the end of a critical section entered by pthread_sleepon_lock().
This function may be implemented as a simple macro.
Returns:
- EOK
- Success.
- EPERM
- The current thread doesn't own the controlling mutex.
Classification:
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |
See also:
pthread_mutex_unlock(), pthread_sleepon_broadcast(), pthread_sleepon_lock(), pthread_sleepon_signal(), pthread_sleepon_wait()
![]() |
![]() |
![]() |
![]() |

![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)