Date: Fri, 15 Mar 2002 11:45:06 -0500 (EST) From: Daniel Eischen <eischen@pcnet1.pcnet.com> To: Brian Dean <bsd@bsdhome.com> Cc: freebsd-arch@FreeBSD.ORG Subject: Re: uthread patch to correct the return code for pthread_rwlock_tryXXlock() Message-ID: <Pine.GSO.4.10.10203151144330.1551-100000@pcnet1.pcnet.com> In-Reply-To: <20020315113053.A48681@neutrino.bsdhome.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 15 Mar 2002, Brian Dean wrote: > Hi, > > The man pages for pthread_rwlock_trywrlock() and > pthread_rwlock_tryrdlock() say that EBUSY is returned when the calling > thread is not able to aquire the lock without blocking. However, the > actual functions return EWOULDBLOCK. I believe the man page is > correct (Solaris and others, at least, return EBUSY). > > Unless there are objections, I plan on committing the attached patch > to correct the code. Yes, it should be EBUSY. -- Dan Eischen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10203151144330.1551-100000>