// Marks that the node needs to be freed and calls scan if needed. void retireNode(void* addr, ReclaimationFunc* reclaimationFunc, HPLocal localData) { stackPush(localData->rlist, addr, reclaimationFunc); if (stackCount(localData->rlist) >= localData->hpData->REC_COUNT) { scan(localData); } }
void displayHash(USERNAME usernameHash[]) { int i; TWITTERDATA* currentData; // Loop hash array to find each user for (i = 0; i < MAX_HASH; i++) { // If data exists in hash index if (usernameHash[i].filled == 1) // Loop through all tweets of current user while (stackCount(usernameHash[i].data) > 0) { // Get current tweet currentData = (TWITTERDATA*)popStack(usernameHash[i].data); // Print tweet printf("%s,%s,%d,%s\n", usernameHash[i].username, currentData->date, currentData->numberOfRetweets, currentData->tweet); }// end while }// end for }// end displayHash