Ignore:
Timestamp:
Dec 2, 2013, 7:33:35 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
aaaedba
Parents:
8abf006
git-author:
Sebastian Huber <sebastian.huber@…> (12/02/13 07:33:35)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/02/13 08:24:51)
Message:

posix: Use cleanup contexts on the stack

Provide support for latest Newlib <pthread.h> change. The cleanup
contexts are stored on the thread stack. This is conformant with the
POSIX requirements for the pthread_cleanup_push() and
pthread_cleanup_pop() statement pair.

Passing an invalid pointer as the routine to pthread_cleanup_push() is
now a usage error and the behaviour is undefined.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/include/rtems/posix/cancel.h

    r8abf006 r927a0a1  
    2222#include <rtems/posix/threadsup.h>
    2323
     24#ifndef HAVE_STRUCT__PTHREAD_CLEANUP_CONTEXT
    2425/**
    2526 * This structure is used to manage the cancelation handlers.
     
    3334  void       *arg;
    3435}  POSIX_Cancel_Handler_control;
     36#endif /* HAVE_STRUCT__PTHREAD_CLEANUP_CONTEXT */
    3537
    3638/**
Note: See TracChangeset for help on using the changeset viewer.