Add Book to My BookshelfPurchase This Book Online

Appendix B - Pthreads Draft 4 vs. the Final Standard

Pthreads Programming
Bradford Nichols, Dick Buttlar and Jacqueline Proulx Farrell
 Copyright © 1996 O'Reilly & Associates, Inc.

Cancellation
Syntax: To set the cancellation state of a thread on an implementation that conforms to the final standard, you call pthread_setcancelstate with either the PTHREAD_CANCEL_ENABLE or PTHREAD_CANCEL_DISABLE constant. In a Draft 4 implementation, you call pthread_setcancel with either the CANCEL_ON or CANCEL_OFF constant (to enable or disable cancellation, respectively). 
Syntax: To set the cancellation type of a thread on an implementation that conforms to the final standard, you call the pthread_setcanceltype function with either the PTHREAD_CANCEL_ASYNCHRONOUS or PTHREAD_CANCEL_DEFERRED constant. In a Draft 4 implementation, you call pthread_setasynccancel with either the CANCEL_ON or CANCEL_OFF constant (to asynchronous cancellation or deferred cancellation, respectively). 

Previous SectionNext Section
Books24x7.com, Inc © 2000 –  Feedback