Beispiel #1
0
Queue CqsCreate(void)
{
  Queue q = (Queue)CmiAlloc(sizeof(struct Queue_struct));
  q->length = 0;
  q->maxlen = 0;
#ifdef FASTQ
  /*  printf("\nIN fastq"); */
#endif
  CqsDeqInit(&(q->zeroprio));
  CqsPrioqInit(&(q->negprioq));
  CqsPrioqInit(&(q->posprioq));
  return q;
}
Beispiel #2
0
Queue CqsCreate(void)
{
    Queue q = (Queue)CmiAlloc(sizeof(struct Queue_struct));
    q->length = 0;
    q->maxlen = 0;
#ifdef FASTQ
    /*  printf("\nIN fastq"); */
#endif
    CqsDeqInit(&(q->zeroprio));
    CqsPrioqInit(&(q->negprioq));
    CqsPrioqInit(&(q->posprioq));
#if CMK_USE_STL_MSGQ
    q->stlQ = (void*) new conv::msgQ<prio_t>;
#endif
    return q;
}