Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
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