While Rob is reviewing my patches i got a bugfix for the pthread
cancellation code.

2002-05-27  Thomas Pfaff  <[EMAIL PROTECTED]>

        * thread.h (pthread::cleanup_stack): Renamed from
        cleanup_handlers to cleanup_stack.
        * thread.cc (pthread::pthread): Ditto.
        (__pthread_cleanup_push): Ditto.
        (__pthread_cleanup_pop): Ditto.
        (__pthread_cleanup_pop_all): Ditto.
        (__pthread_cancel): Check the cancelstate and type before
        pthread_equal to make sure that the thread is cancelled the
        right way.
        Unlock the mutex before the cancellation.









Attachment: pthread_cancel1.patch
Description: Binary data

Reply via email to