Changeset 976162a6 in rtems for cpukit/posix/src/mutexdestroy.c


Ignore:
Timestamp:
Dec 3, 2007, 10:23:13 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
2f1d801
Parents:
3e066540
Message:

2007-12-03 Joel Sherrill <joel.sherrill@…>

  • libcsupport/src/malloc.c, libmisc/monitor/mon-command.c, posix/preinstall.am, posix/include/rtems/posix/cond.h, posix/include/rtems/posix/mqueue.h, posix/include/rtems/posix/mutex.h, posix/include/rtems/posix/pthread.h, posix/include/rtems/posix/semaphore.h, posix/src/conddestroy.c, posix/src/mutexdestroy.c, posix/src/mutexinit.c, posix/src/mutexsetprioceiling.c, posix/src/mutexunlock.c, sapi/include/confdefs.h, sapi/include/rtems/config.h, sapi/include/rtems/init.h, sapi/include/rtems/sptables.h, sapi/src/exinit.c, score/include/rtems/system.h, score/include/rtems/score/mpci.h, score/src/mpci.c, score/src/thread.c, score/src/threadcreateidle.c, score/src/threadstackallocate.c, score/src/threadstackfree.c, score/src/wkspace.c: Moved most of the remaining CPU Table fields to the Configuration Table. This included pretasking_hook, predriver_hook, postdriver_hook, idle_task, do_zero_of_workspace, extra_mpci_receive_server_stack, stack_allocate_hook, and stack_free_hook. As a side-effect of this effort some multiprocessing code was made conditional and some style clean up occurred.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/src/mutexdestroy.c

    r3e066540 r976162a6  
    1313#include <rtems/score/coremutex.h>
    1414#include <rtems/score/watchdog.h>
    15 #if defined(RTEMS_MULTIPROCESSING)
    16 #include <rtems/score/mpci.h>
    17 #endif
    1815#include <rtems/posix/mutex.h>
    1916#include <rtems/posix/priority.h>
     
    4845      _Objects_Close( &_POSIX_Mutex_Information, &the_mutex->Object );
    4946
    50       _CORE_mutex_Flush(
    51         &the_mutex->Mutex,
    52 #if defined(RTEMS_MULTIPROCESSING)
    53         _POSIX_Mutex_MP_Send_object_was_deleted,
    54 #else
    55         NULL,
    56 #endif
    57         EINVAL
    58       );
     47      _CORE_mutex_Flush( &the_mutex->Mutex, NULL, EINVAL );
    5948
    6049      _POSIX_Mutex_Free( the_mutex );
    61 
    62 #if defined(RTEMS_MULTIPROCESSING)
    63       if ( the_mutex->process_shared == PTHREAD_PROCESS_SHARED ) {
    64 
    65         _Objects_MP_Close( &_POSIX_Mutex_Information, the_mutex->Object.id );
    66 
    67         _POSIX_Mutex_MP_Send_process_packet(
    68           POSIX_MUTEX_MP_ANNOUNCE_DELETE,
    69           the_mutex->Object.id,
    70           0,                         /* Not used */
    71           0                          /* Not used */
    72         );
    73       }
    74 #endif
    7550      _Thread_Enable_dispatch();
    7651      return 0;
Note: See TracChangeset for help on using the changeset viewer.