Last change
on this file since 118 was
81,
checked in by rosiere, 16 years ago
|
- Finish Environment (and test)
- Continue predictor_unit
- Add external tools
- svn keyword "Id" set
|
-
Property svn:keywords set to
Id
|
File size:
950 bytes
|
Line | |
---|
1 | #include "Behavioural/Generic/Queue_Control/include/Queue_Control.h" |
---|
2 | |
---|
3 | namespace morpheo { |
---|
4 | namespace behavioural { |
---|
5 | namespace generic { |
---|
6 | namespace queue_control { |
---|
7 | |
---|
8 | #undef FUNCTION |
---|
9 | #define FUNCTION "Queue_Control::push" |
---|
10 | uint32_t Queue_Control::push (void) |
---|
11 | { |
---|
12 | log_printf(FUNC,Queue_Control,FUNCTION,"Begin"); |
---|
13 | |
---|
14 | uint32_t _return = (*_tab)[_nb_elt]; |
---|
15 | _nb_elt ++; |
---|
16 | |
---|
17 | log_printf(FUNC,Queue_Control,FUNCTION,"End"); |
---|
18 | |
---|
19 | return _return; |
---|
20 | }; |
---|
21 | |
---|
22 | #undef FUNCTION |
---|
23 | #define FUNCTION "Queue_Control::push_ovf" |
---|
24 | uint32_t Queue_Control::push_ovf (void) |
---|
25 | { |
---|
26 | log_printf(FUNC,Queue_Control,FUNCTION,"Begin"); |
---|
27 | |
---|
28 | if (full()) |
---|
29 | { |
---|
30 | ErrorMorpheo ("<Queue_Control::push_ovf> Queue Overflow"); |
---|
31 | } |
---|
32 | |
---|
33 | uint32_t _return = push(); |
---|
34 | |
---|
35 | log_printf(FUNC,Queue_Control,FUNCTION,"End"); |
---|
36 | |
---|
37 | return _return; |
---|
38 | }; |
---|
39 | |
---|
40 | }; // end namespace queue_control |
---|
41 | }; // end namespace generic |
---|
42 | }; // end namespace behavioural |
---|
43 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.