4.115
Last change
on this file since f031df0e was
a2e3f33,
checked in by Sebastian Huber <sebastian.huber@…>, on 07/24/13 at 11:50:54
|
score: Create object implementation header
Move implementation specific parts of object.h and object.inl into new
header file objectimpl.h. The object.h contains now only the
application visible API.
|
-
Property mode set to
100644
|
File size:
723 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Copyright (c) 2012 embedded brains GmbH. All rights reserved. |
---|
3 | * |
---|
4 | * embedded brains GmbH |
---|
5 | * Obere Lagerstr. 30 |
---|
6 | * 82178 Puchheim |
---|
7 | * Germany |
---|
8 | * <rtems@embedded-brains.de> |
---|
9 | * |
---|
10 | * The license and distribution terms for this file may be |
---|
11 | * found in the file LICENSE in this distribution or at |
---|
12 | * http://www.rtems.com/license/LICENSE. |
---|
13 | */ |
---|
14 | |
---|
15 | #if HAVE_CONFIG_H |
---|
16 | #include "config.h" |
---|
17 | #endif |
---|
18 | |
---|
19 | #include <rtems/score/objectimpl.h> |
---|
20 | #include <rtems/score/chainimpl.h> |
---|
21 | |
---|
22 | Objects_Maximum _Objects_Active_count( |
---|
23 | const Objects_Information *information |
---|
24 | ) |
---|
25 | { |
---|
26 | size_t inactive = _Chain_Node_count_unprotected( &information->Inactive ); |
---|
27 | size_t maximum = information->maximum; |
---|
28 | |
---|
29 | return (Objects_Maximum) ( maximum - inactive ); |
---|
30 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.