iofunc_attr_unlock()

QNX SDP8.0C Library ReferenceAPIDeveloper

Unlock the attribute structure

Synopsis:

#include <sys/iofunc.h>

int iofunc_attr_unlock( iofunc_attr_t *attr );

Arguments:

attr
A pointer to the iofunc_attr_t structure that you want to unlock.

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

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.

Returns:

EOK
Success.
Anything else
An error occurred. Refer to pthread_mutex_unlock() for a list of possible error returns.

Classification:

QNX OS

Safety:
Cancellation pointNo
Signal handlerYes
ThreadYes
Page updated: