Stable, not functional. Builds a switch case for unique SESE class invocation, inclu...
[IRC.git] / Robust / src / Runtime / mlp_runtime.c
1 #include <stdlib.h>
2 #include <stdio.h>
3 #include "mlp_runtime.h"
4 #include "Queue.h"
5
6
7 static struct Queue* issued;
8
9
10 // each core should have a current SESE
11 static struct SESErecord* current;
12
13
14 void mlpInit() {
15   issued  = createQueue();
16   current = NULL;
17 }
18
19
20 struct SESErecord* mlpGetCurrent() {
21   return current;
22 }
23
24
25 void mlpIssue( struct SESErecord* sese ) {
26   addNewItem( issued, (void*) sese );
27 }
28
29 void mlpStall( struct SESErecord* sese ) {
30   
31 }
32
33 void mlpNotifyExit( struct SESErecord* sese ) {
34   
35 }
36
37 /*
38 isEmpty(queue)
39 void* getItem(queue)
40 */