Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 May 2003 17:48:33 -0400
From:      Alexander Kabaev <ak03@gte.com>
To:        freebsd-threads@FreeBSD.ORG
Subject:   _pthread_cond_wait vs. __pthread_condwait
Message-ID:  <20030519174833.28db3cd2.ak03@gte.com>

next in thread | raw e-mail | index | archive | help
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?

-- 
Alexander Kabaev



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030519174833.28db3cd2.ak03>