Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Where is pthread_rwlockattr_t documented?: (3 Items)
   
Where is pthread_rwlockattr_t documented?  
The Library Reference manual entry for pthread_rwlockattr_init( ) says that the sole argument is of type 
pthread_rwlockattr_t, but does not appear to document the use of that struct.  Where is that information?

Thanks,

   Chris
RE: Where is pthread_rwlockattr_t documented?  
As with all of the other pthread structures, POSIX says that the
structure itself is opaque.  The values in the attribute can be set
using the pthread_rwlock_attr_* functions.  Currently the only two are:

pthread_rwlockattr_setpshared()
pthread_rwlockattr_getpshared()

Which set or get whether the lock is shared by more than one process.

Beyond this, the structure is only used in pthread_rwlock_init() to
setup a new rwlock.

Regards,

David 

> -----Original Message-----
> From: Chris Chiesa [mailto:community-noreply@qnx.com] 
> Sent: March 17, 2010 3:30 PM
> To: ostech-core_os
> Subject: Where is pthread_rwlockattr_t documented?
> 
> The Library Reference manual entry for 
> pthread_rwlockattr_init( ) says that the sole argument is of 
> type pthread_rwlockattr_t, but does not appear to document 
> the use of that struct.  Where is that information?
> 
> Thanks,
> 
>    Chris
> 
> 
> 
> _______________________________________________
> 
> OSTech
> http://community.qnx.com/sf/go/post49786
> 
> 
Re: RE: Where is pthread_rwlockattr_t documented?  
Thanks, David.  After a bit of Googling I had concluded much the same (except for the bit about POSIX requiring it to be
 opaque; why THIS particular struct and not various others?  Weird).  Thanks for confirming it.

Chris