static Mask *allocateMask(SequencesWriter *seqWriteInfo) { if (seqWriteInfo->m_maskMemory == NULL) seqWriteInfo->m_maskMemory = newRecycleBin(sizeof(Mask), 10000); return (Mask *) allocatePointer(seqWriteInfo->m_maskMemory); }
static Mask *allocateMask() { if (maskMemory == NULL) maskMemory = newRecycleBin(sizeof(Mask), 10000); return (Mask *) allocatePointer(maskMemory); }
static Event *allocateEvent() { if (eventMemory == NULL) eventMemory = newRecycleBin(sizeof(Event), BLOCK_SIZE); return allocatePointer(eventMemory); }
static Connection *allocateConnection() { if (connectionMemory == NULL) connectionMemory = newRecycleBin(sizeof(Connection), BLOCK_SIZE); return allocatePointer(connectionMemory); }
Transcript *allocateTranscript() { if (transcriptMemory == NULL) transcriptMemory = newRecycleBin(sizeof(Transcript), BLOCK_SIZE); return (Transcript*)allocatePointer(transcriptMemory); }
static SmallNodeList *allocateSmallNodeList() { if (smallNodeListMemory == NULL) smallNodeListMemory = newRecycleBin(sizeof(SmallNodeList), BLOCKSIZE); return allocatePointer(smallNodeListMemory); }
static NodeList *allocateNodeList() { if (nodeListMemory == NULL) nodeListMemory = newRecycleBin(sizeof(NodeList), BLOCK_SIZE); return (NodeList*)allocatePointer(nodeListMemory); }
static RBConnection *allocateRBConnection() { if (nodeListMemory == NULL) nodeListMemory = newRecycleBin(sizeof(RBConnection), BLOCKSIZE); return allocatePointer(nodeListMemory); }
static SplayNode *allocateSplayNode() { #ifdef OPENMP #ifdef DEBUG if (treeMemory == NULL) { velvetLog("The memory for splay trees seems uninitialised, " "this is probably a bug, aborting.\n"); abort(); } #endif return allocatePointer(getRecycleBinInArray(treeMemory, omp_get_thread_num())); #else if (treeMemory == NULL) treeMemory = newRecycleBin(sizeof(SplayNode), CHUNKSIZE); return allocatePointer(treeMemory); #endif }
static SmallNodeList *allocateSmallNodeList() { #ifdef OPENMP #ifdef DEBUG if (smallNodeListMemory == NULL) { velvetLog("The memory for small nodes seems uninitialised, " "this is probably a bug, aborting.\n"); abort(); } #endif return allocatePointer(getRecycleBinInArray(smallNodeListMemory, omp_get_thread_num())); #else if (smallNodeListMemory == NULL) smallNodeListMemory = newRecycleBin(sizeof(SmallNodeList), BLOCKSIZE); return allocatePointer(smallNodeListMemory); #endif }
static FibHeapNode *allocateFibHeapEl(FibHeap * heap) { return allocatePointer(heap->nodeMemory); }
static DFibHeapNode *allocateDFibHeapNode(DFibHeap * heap) { return (DFibHeapNode*)allocatePointer(heap->nodeMemory); }