Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/p/pthread_sleepon_unlock.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/p/pthread_sleepon_unlock.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/p/pthread_sleepon_unlock.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/p/pthread_sleepon_unlock.html on line 8
Unlock the pthread_sleepon*() functions
#include <pthread.h>
int pthread_sleepon_unlock( void );
libc
Use the -l c option to
qcc
to link against this library.
This library is usually included automatically.
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.
- EOK
- Success.
- EPERM
- The current thread doesn't own the controlling mutex.
QNX Neutrino
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
Yes |
Thread |
Yes |
pthread_mutex_unlock(),
pthread_sleepon_broadcast(),
pthread_sleepon_lock(),
pthread_sleepon_signal(),
pthread_sleepon_wait()
Processes and Threads
chapter of Getting Started with QNX Neutrino
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/p/pthread_sleepon_unlock.html on line 124
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/p/pthread_sleepon_unlock.html on line 124