Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 May 2003 18:13:28 -0400 (EDT)
From:      Daniel Eischen <eischen@pcnet1.pcnet.com>
To:        Alexander Kabaev <ak03@gte.com>
Cc:        freebsd-threads@freebsd.org
Subject:   Re: _pthread_cond_wait vs. __pthread_condwait
Message-ID:  <Pine.GSO.4.10.10305191812350.22159-100000@pcnet1.pcnet.com>
In-Reply-To: <20030519174833.28db3cd2.ak03@gte.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 19 May 2003, Alexander Kabaev wrote:

> The _pthread_cond_wait function has this at the beginning:
> 
>         _thr_enter_cancellation_point(curthread);
> 
>         if (cond == NULL) {
>                 _thr_leave_cancellation_point(curthread);
> and this at the end: 
>         _thr_leave_cancellation_point(curthread);
> 
> 
> __pthread_cond_wait is defined as
> 
>        _thr_enter_cancellation_point(curthread);
>         ret = _pthread_cond_wait(cond, mutex);
>         _thr_leave_cancellation_point(curthread);
>         return (ret);
> 
> So what is the difference between the two? Should't cancellantion checks
> ve removed from _pthread_cond_wait?

Yes, and the weak references are wrong too (they should be
to __pthread_cond_wait/__pthread_cond_timedwait).

-- 
Dan Eischen



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10305191812350.22159-100000>