_pthread_cond_wait vs. __pthread_condwait
Daniel Eischen
eischen at pcnet1.pcnet.com
Mon May 19 15:13:31 PDT 2003
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
More information about the freebsd-threads
mailing list