initial multicore gargbage collection, not finish yet
[IRC.git] / Robust / src / Runtime / mlp_runtime.c
1 #include "runtime.h"
2
3 #include <stdlib.h>
4 #include <stdio.h>
5 #include <assert.h>
6
7 #include "mem.h"
8 #include "Queue.h"
9 #include "mlp_runtime.h"
10 #include "workschedule.h"
11
12
13 #define FALSE 0
14 #define TRUE  1
15
16
17
18 void* mlpAllocSESErecord( int size ) {
19   void* newrec = RUNMALLOC( size );  
20   return newrec;
21 }
22
23
24 void mlpFreeSESErecord( void* seseRecord ) {
25   RUNFREE( seseRecord );
26 }
27
28
29 void mlpInit( int numProcessors, 
30               void(*workFunc)(void*),
31               int argc, char** argv,
32               int maxSESEage ) {  
33
34   // first initialize the work scheduler
35   //workScheduleInit( numProcessors, workFunc );
36
37   //workScheduleBegin();
38 }
39
40
41 void mlpIssue( void* seseRecord ) {
42
43 }
44
45
46 void mlpStall( void* seseRecord ) {
47   
48 }