jop
unread,Apr 28, 2012, 8:17:57 PM4/28/12You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
QNX documentation specifies the following return values for pthread_mutex_init()
EOK - Success.
EAGAIN - All kernel synchronization objects are in use.
EBUSY - The given mutex was previously initialized and hasn't been destroyed.
EFAULT - A fault occurred when the kernel tried to access mutex or attr.
EINVAL - The value specified by attr is invalid.
What would be correct handling for each of these code?
Also IEEE Std 1003.1-2008, specifies the following
[EAGAIN] - The system lacked the necessary resources (other than memory) to initialize another mutex.
[ENOMEM] - Insufficient memory exists to initialize the mutex.
[EPERM] - The caller does not have the privilege to perform the operation.
Why are ENOMEM and EPERM not specified in QNX?