| <assertions> |
| <assertion id="1" tag="ref:XSH6:35257:35259"> |
| The function |
| |
| int pthread_setcanceltype(int type, int* oldtype); |
| |
| Atomically sets the cancelability type to 'type' and returns the old |
| cancelability type in the location referenced by 'oldtype'. |
| |
| 'state' can either be PTHREAD_CANCEL_DEFERRED, or PTHREAD_CANCEL_ASYNCHRONOUS. |
| </assertion> |
| <assertion id="2" tag="ref:XSH6:35261:35263"> |
| The cancelability type of a newly created thread is PTHREAD_CANCEL_DEFERRED. |
| </assertion> |
| <assertion id="3" tag="ref:XSH6:35267:35276"> |
| It returns a 0 on success. It may return an error code of: |
| |
| [EINVAL] The specified state is not PTHREAD_CANCEL_DEFERRED or |
| PTHREAD_CANCEL_ASYNCHRONOUS. |
| |
| It will not return EINTR. |
| </assertion> |
| </assertions> |