+ waitingElement
.getDynID()
+ ";");
- output.println(" rentry=mlpCreateFineREntry("
+ output.println(" rentry=mlpCreateFineREntry(runningSESE->memoryQueueArray["+ queueID+ "],"
+ waitingElement.getStatus()
+ ", &(seseToIssue->common), pointer );");
}
} else {
- output.println(" rentry=mlpCreateFineREntry("
+ output.println(" rentry=mlpCreateFineREntry(runningSESE->memoryQueueArray["+ queueID+ "],"
+ waitingElement.getStatus()
+ ", &(seseToIssue->common), (void*)&seseToIssue->"
+ waitingElement.getDynID()
.getDynID()
+ ";");
output
- .println(" rentry=mlpCreateFineREntry("
+ .println(" rentry=mlpCreateFineREntry(runningSESE->memoryQueueArray["+ queueID+ "],"
+ waitingElement
.getStatus()
+ ", &(seseToIssue->common), pointer );");
}
} else {
output
- .println(" rentry=mlpCreateFineREntry("
+ .println(" rentry=mlpCreateFineREntry(runningSESE->memoryQueueArray["+ queueID+ "],"
+ waitingElement
.getStatus()
+ ", &(seseToIssue->common), (void*)&seseToIssue->"
#include <pthread.h>
+#include "runtime.h"
+#include "mem.h"
#include "Queue.h"
#include "psemaphore.h"
#include "mlp_lock.h"
}
static MemPool* taskpoolcreate( int itemSize ) {
- MemPool* p = RUNMALLOC( 1, sizeof( MemPool ) );
+ MemPool* p = RUNMALLOC( sizeof( MemPool ) );
SESEcommon *c = (SESEcommon *) p;
pthread_cond_init( &(c->runningChildrenCond), NULL );
pthread_mutex_init( &(c->lock), NULL );
p->itemSize = itemSize;
- p->head = RUNMALLOC( 1, itemSize );
+ p->head = RUNMALLOC( itemSize );
p->head->next = NULL;
p->tail = p->head;
return p;