tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pthread library related
Thanks Martin and Soda!
How about other functions? Does it make sense to follow POSIX standard
to implement the missing functions in netbsd?
2016-05-18 19:00 GMT-07:00 SODA Noriyuki <soda%yuruyuru.net@localhost>:
> >>>>> On Thu, 19 May 2016 01:13:09 +0200,
> Martin Husemann <martin%duskware.de@localhost> said:
>
> > int pthread_barrierattr_setpshared(pthread_barrierattr_t *attr,
> > int pshared)
> > {
> > return EINVAL;
> > }
>
> I think the following is better:
>
> int pthread_barrierattr_setpshared(pthread_barrierattr_t *attr,
> int pshared)
> {
> switch (pshared) {
> case PTHREAD_PROCESS_PRIVATE:
> return 0;
> case PTHREAD_PROCESS_SHARED:
> return ENOSYS;
> }
> return EINVAL;
> }
> --
> soda
>
Home |
Main Index |
Thread Index |
Old Index