pthread_condattr_[gs]etpshared

Nigel Kukard nkukard at lbsd.net
Fri Dec 25 12:53:45 UTC 2009


> On Thu, Dec 24, 2009 at 11:18:49AM +0000, Nigel Kukard wrote:
>   
>> Hi guys,
>>
>> Just curious if there is a technical reason why
>> pthread_condattr_[gs]etpshared arn't implemented?
>>     
> AFAICS it's implemented in linuxthreads.old and NPTL. It's required for
> SUS threads.
>   

Sorry ... implemented, but ENOSYS, so not functional and displays
message "Function not implemented".

Below from linuxthreads.old ...

int __pthread_mutexattr_setpshared (pthread_mutexattr_t *attr
attribute_unused, int pshared)
{
  if (pshared != PTHREAD_PROCESS_PRIVATE && pshared !=
PTHREAD_PROCESS_SHARED)
    return EINVAL;

  /* For now it is not possible to shared a conditional variable.  */
  if (pshared != PTHREAD_PROCESS_PRIVATE)
    return ENOSYS;

  return 0;
}



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20091225/2b6e9430/attachment.pgp>


More information about the uClibc mailing list