I think i might have found a minor bug in “int
pthread_mutexattr_setpshared(pthread_mutexattr_t* attr, int pshared)” in
v6.2.1.
The documentation (QNX as well as POSIX) says that the function returns
EINVAL if “The new value specified in pshared isn’t PTHREAD_PROCESS_SHARED
or PTHREAD_PROCESS_PRIVATE”.
However I find that any value I pass for “pshared” is accepted (EOK). Some
testing shows me that odd values equate to PTHREAD_PROCESS_SHARED and even
values are taken as PTHREAD_PROCESS_PRIVATE.
Thanks for the bug report, it does appear that our documentation is
inconsistent with the behaviour of this function.
Cheers,
-Barry
Arun Annaji wrote:
Hi,
I think i might have found a minor bug in “int
pthread_mutexattr_setpshared(pthread_mutexattr_t* attr, int pshared)” in
v6.2.1.
The documentation (QNX as well as POSIX) says that the function returns
EINVAL if “The new value specified in pshared isn’t PTHREAD_PROCESS_SHARED
or PTHREAD_PROCESS_PRIVATE”.
However I find that any value I pass for “pshared” is accepted (EOK). Some
testing shows me that odd values equate to PTHREAD_PROCESS_SHARED and even
values are taken as PTHREAD_PROCESS_PRIVATE.