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/i/iofunc_attr_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/i/iofunc_attr_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/i/iofunc_attr_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/i/iofunc_attr_unlock.html on line 8
Unlock the attribute structure
#include <sys/iofunc.h>
int iofunc_attr_unlock( iofunc_attr_t *attr );
- attr
- A pointer to the
iofunc_attr_t
structure that you want to unlock.
libc
Use the -l c option to
qcc
to link against this library.
This library is usually included automatically.
The iofunc_attr_unlock() function unlocks the attribute structure
attr,
allowing other threads in the resource manager to change
information.
Use this function in conjunction with
iofunc_attr_lock()
or
iofunc_attr_trylock();
call iofunc_attr_unlock() after you've made
modifications to the attribute structure.
You must unlock the structure as many times as you locked it.
- EOK
- Success.
- EAGAIN
- On the first use, all kernel mutex objects were in use.
QNX Neutrino
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
Yes |
Thread |
Yes |
iofunc_attr_init(),
iofunc_attr_lock(),
iofunc_attr_t,
iofunc_attr_trylock()
Writing a Resource Manager
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/i/iofunc_attr_unlock.html on line 134
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/i/iofunc_attr_unlock.html on line 134