source: rtems/cpukit/score/src/objectclose.c @ 9184270

4.104.114.9
Last change on this file since 9184270 was 9184270, checked in by Joel Sherrill <joel.sherrill@…>, on Feb 6, 2008 at 11:54:55 PM

2008-02-06 Joel Sherrill <joel.sherrill@…>

  • posix/src/mqueueunlink.c, score/Makefile.am, score/include/rtems/score/object.h, score/inline/rtems/score/object.inl: Enhance _Objects_Namespace_remove() to handle freeing object names which are strings. All changed _Objects_Close() to call _Objects_Namespace_remove(). The resulting code was then moved from inline routines to function calls.
  • score/src/objectclose.c, score/src/objectnamespaceremove.c: New files.
  • Property mode set to 100644
File size: 660 bytes
Line 
1/*
2 *  COPYRIGHT (c) 1989-2008.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.com/license/LICENSE.
8 *
9 *  $Id$
10 */
11
12#if HAVE_CONFIG_H
13#include "config.h"
14#endif
15
16#include <rtems/system.h>
17#include <rtems/score/object.h>
18#include <rtems/score/wkspace.h>
19
20void _Objects_Close(
21  Objects_Information  *information,
22  Objects_Control      *the_object
23)
24{
25  _Objects_Set_local_object(
26    information,
27    _Objects_Get_index( the_object->id ),
28    NULL
29  );
30
31  _Objects_Namespace_remove( information, the_object );
32}
Note: See TracBrowser for help on using the repository browser.