Still haven't worked all the bugs out of MLP's support for method calls, but stable...
[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
14 __thread struct Queue* seseCallStack;
15 __thread pthread_once_t mlpOnceObj = PTHREAD_ONCE_INIT;
16 void mlpInitOncePerThread() {
17   seseCallStack = createQueue();
18 }
19
20
21 void* mlpAllocSESErecord( int size ) {
22   void* newrec = RUNMALLOC( size );  
23   return newrec;
24 }
25
26
27 void mlpFreeSESErecord( void* seseRecord ) {
28   RUNFREE( seseRecord );
29 }