This source file includes following definitions.
- opal_fifo_construct
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 #include "opal_config.h"
23 #include "opal/class/opal_fifo.h"
24
25 static void opal_fifo_construct (opal_fifo_t *fifo)
26 {
27 OBJ_CONSTRUCT(&fifo->opal_fifo_ghost, opal_list_item_t);
28
29 fifo->opal_fifo_ghost.opal_list_next = &fifo->opal_fifo_ghost;
30
31
32 fifo->opal_fifo_ghost.item_free = 0;
33
34 fifo->opal_fifo_head.data.counter = 0;
35 fifo->opal_fifo_head.data.item = (intptr_t) &fifo->opal_fifo_ghost;
36
37 fifo->opal_fifo_tail.data.counter = 0;
38 fifo->opal_fifo_tail.data.item = (intptr_t) &fifo->opal_fifo_ghost;
39 }
40
41 OBJ_CLASS_INSTANCE(opal_fifo_t, opal_object_t, opal_fifo_construct, NULL);