Changeset b6c868e in rtems


Ignore:
Timestamp:
10/25/99 16:05:34 (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
8379ada7
Parents:
4e69f5b7
Message:

Patch from Charles-Antoine Gauthier <charles.gauthier@…>
to initialize the pthread cancellation fields. This is a patch to
_POSIX_Threads_Create_extension that fixes the problem.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/posix/src/pthread.c

    r4e69f5b7 rb6c868e  
    149149     _POSIX_Priority_From_core( created->current_priority );
    150150 
     151  /* 
     152   *  POSIX 1003.1 1996, 18.2.2.2
     153   */
     154  api->cancelation_requested = 0;
     155  api->cancelability_state = PTHREAD_CANCEL_ENABLE;
     156  api->cancelability_type = PTHREAD_CANCEL_DEFERRED;
     157  _Chain_Initialize_empty (&api->Cancellation_Handlers);
     158
    151159  /*
    152160   *  If the thread is not a posix thread, then all posix signals are blocked
  • cpukit/posix/src/pthread.c

    r4e69f5b7 rb6c868e  
    149149     _POSIX_Priority_From_core( created->current_priority );
    150150 
     151  /* 
     152   *  POSIX 1003.1 1996, 18.2.2.2
     153   */
     154  api->cancelation_requested = 0;
     155  api->cancelability_state = PTHREAD_CANCEL_ENABLE;
     156  api->cancelability_type = PTHREAD_CANCEL_DEFERRED;
     157  _Chain_Initialize_empty (&api->Cancellation_Handlers);
     158
    151159  /*
    152160   *  If the thread is not a posix thread, then all posix signals are blocked
Note: See TracChangeset for help on using the changeset viewer.