Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - pthread_mu: (3 Items)
   
pthread_mu  
How can pthread_mutex_init(&_mutex, NULL ) return an error with errno set to EINVAL given that the attribute argument is
 NULL?
Re: pthread_mu  
On Mon, Apr 11, 2011 at 10:46:40AM -0400, Mario Charest wrote:
> 
> How can pthread_mutex_init(&_mutex, NULL ) return an error with errno
> set to EINVAL given that the attribute argument is NULL?
> 

pthread_mutex_init() returns EOK on success or an error on failure.
It doesn't set errno.

Regards,

-seanb
Re: pthread_mu  
> On Mon, Apr 11, 2011 at 10:46:40AM -0400, Mario Charest wrote:
> > 
> > How can pthread_mutex_init(&_mutex, NULL ) return an error with errno
> > set to EINVAL given that the attribute argument is NULL?
> > 
> 
> pthread_mutex_init() returns EOK on success or an error on failure.
> It doesn't set errno.
> 

Thanks...

> Regards,
> 
> -seanb