void tw_pe_fossil_collect(void) { tw_kp *kp; unsigned int i; g_tw_fossil_attempts++; for(i = 0; i < g_tw_nkp; i++) { kp = tw_getkp(i); tw_eventq_fossil_collect(&kp->pevent_q, g_tw_pe); } }
void tw_pe_fossil_collect(tw_pe * me) { tw_kp *kp; int i; g_tw_fossil_attempts++; for(i = 0; i < g_tw_nkp; i++) { kp = tw_getkp(i); tw_eventq_fossil_collect(&kp->pevent_q, me); #ifdef ROSS_MEMORY tw_kp_fossil_memory(kp); #endif } }