source: rtems/cpukit/score/inline/rtems/score/objectmp.inl @ 1f0d013

4.115
Last change on this file since 1f0d013 was 1f0d013, checked in by Alex Ivanov <alexivanov97@…>, on 01/09/13 at 13:56:28

score: Doxygen Clean Up Task #17

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/**
2 * @file
3 *
4 * @brief Inlined Routines Associated with Global Objects
5 *
6 * This include file contains the bodies of all inlined routines
7 * which deal with global objects.
8 */
9
10/*
11 *  COPYRIGHT (c) 1989-2004.
12 *  On-Line Applications Research Corporation (OAR).
13 *
14 *  The license and distribution terms for this file may be
15 *  found in the file LICENSE in this distribution or at
16 *  http://www.rtems.com/license/LICENSE.
17 */
18
19#ifndef _RTEMS_SCORE_OBJECTMP_H
20# error "Never use <rtems/score/objectmp.inl> directly; include <rtems/score/objectmp.h> instead."
21#endif
22
23#ifndef _RTEMS_SCORE_OBJECTMP_INL
24#define _RTEMS_SCORE_OBJECTMP_INL
25
26/**
27 * @addtogroup ScoreObjectMP
28 *
29 * @{
30 */
31
32/**
33 * This function allocates a Global Object control block.
34 */
35
36RTEMS_INLINE_ROUTINE Objects_MP_Control *_Objects_MP_Allocate_global_object (
37  void
38)
39{
40  return (Objects_MP_Control *)
41           _Chain_Get( &_Objects_MP_Inactive_global_objects );
42}
43
44/**
45 * This routine deallocates a Global Object control block.
46 */
47
48RTEMS_INLINE_ROUTINE void _Objects_MP_Free_global_object (
49  Objects_MP_Control *the_object
50)
51{
52  _Chain_Append(
53    &_Objects_MP_Inactive_global_objects,
54    &the_object->Object.Node
55  );
56}
57
58/**
59 * This function returns whether the global object is NULL or not.
60 */
61
62RTEMS_INLINE_ROUTINE bool _Objects_MP_Is_null_global_object (
63  Objects_MP_Control *the_object
64)
65{
66  return( the_object == NULL );
67}
68
69/** @} */
70
71#endif
72/* end of include file */
Note: See TracBrowser for help on using the repository browser.