Changeset 0d018268 in rtems


Ignore:
Timestamp:
Jul 5, 2013, 1:18:24 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
ad83ea0
Parents:
5e2a66d
git-author:
Sebastian Huber <sebastian.huber@…> (07/05/13 13:18:24)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/05/13 14:01:04)
Message:

psxtests/psxcleanup: Fix cleanup push/pop test

The pthread_cleanup_push() and pthread_cleanup_pop() statements must
appear as a pair in the same lexical scope as required by POSIX.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/psxcleanup/psxcleanup.c

    r5e2a66d r0d018268  
    210210  pthread_cleanup_push(release_write_lock, &l->lock);
    211211
     212  /* Thread has write lock. */
     213  release_write_lock(&l->lock);
     214
    212215  /* do nothing */
    213216  puts("do nothing cleanup pop for write");
    214217  pthread_cleanup_pop(0);
    215 
    216   /* Thread has write lock. */
    217   puts("cleanup pop for write");
    218   pthread_cleanup_pop(1);
    219218  return NULL;
    220219}
Note: See TracChangeset for help on using the changeset viewer.